Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问下这是什么原因启动不成功 #2

Open
GuoGuoX opened this issue Jul 11, 2021 · 2 comments
Open

请问下这是什么原因启动不成功 #2

GuoGuoX opened this issue Jul 11, 2021 · 2 comments

Comments

@GuoGuoX
Copy link

GuoGuoX commented Jul 11, 2021

e: D:\flutter.pub-cache\hosted\pub.flutter-io.cn\flutter_app_upgrade-1.1.0\android\src\main\kotlin\com\flutter\flutter_app_upgrade\FlutterAppUpgradePlugin.kt: (62, 54): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type File?
e: D:\flutter.pub-cache\hosted\pub.flutter-io.cn\flutter_app_upgrade-1.1.0\android\src\main\kotlin\com\flutter\flutter_app_upgrade\FlutterAppUpgradePlugin.kt: (127, 20): None of the following functions can be called with the arguments supplied:
@nonnull public open fun setClassName(@nonnull p0: Context, @nonnull p1: String): Intent defined in android.content.Intent
@nonnull public open fun setClassName(@nonnull p0: String, @nonnull p1: String): Intent defined in android.content.Intent

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':flutter_app_upgrade:compileDebugKotlin'.

Compilation error. See log for more details

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 16s
Exception: Gradle task assembleDebug failed with exit code 1

@peihuanhuan
Copy link

同样的错误

Flutter 2.2.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision f4abaa0735 (4 周前) • 2021-07-01 12:46:11 -0700
Engine • revision 241c87ad80
Tools • Dart 2.13.4

@Lu-Lucifer
Copy link

@peihuanhuan @gmingxin
我fock了仓库修改了代码,可以先用我的
dependencies:
flutter_app_upgrade:
git:
url: https://github.com/Lu-Lucifer/flutter-app-upgrade.git
ref: main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants