flutter-app-upgrade icon indicating copy to clipboard operation
flutter-app-upgrade copied to clipboard

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

Open GuoGuoX opened this issue 3 years ago • 2 comments

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

GuoGuoX avatar Jul 11 '21 09:07 GuoGuoX

同样的错误

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

peihuanhuan avatar Jul 30 '21 17:07 peihuanhuan

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

Lu-Lucifer avatar Sep 23 '21 06:09 Lu-Lucifer