我有一个正在开发的应用程序,该应用程序已在商店中发布。一直运行良好,直到最近对flutter,gradle,dart和android studio进行了一些更新。这整个星期都在解决这个问题,试图让它再次运行我的应用程序。目前,它似乎尝试运行该应用程序,该应用程序立即在电话上关闭。本身没有错误,但是这些是flutter运行-v的最新行:
E: meta-data (line=181)
A: android:name(0x01010003)="com.google.android.gms.version" (Raw: "com.google.android.gms.version")
A: android:value(0x01010024)=@0x7f060001
[ +13 ms] Stopping app 'app.apk' on SM G970F.
[ +23 ms] executing: C:\Installations\AndroidSDK\platform-tools\adb.exe -s RF8M33L3WLK shell am force-stop app.appname
[ +120 ms] executing: C:\Installations\AndroidSDK\platform-tools\adb.exe -s RF8M33L3WLK shell pm list packages app.appname
[ +222 ms] Installing APK.
[ +4 ms] executing: C:\Installations\AndroidSDK\platform-tools\adb.exe version
[ +60 ms] Android Debug Bridge version 1.0.41
Version 29.0.4-5871666
Installed as C:\Installations\AndroidSDK\platform-tools\adb.exe
[ +2 ms] executing: C:\Installations\AndroidSDK\platform-tools\adb.exe start-server
[ +41 ms] Installing android\build\app\outputs\apk\app.apk...
[ +1 ms] executing: C:\Installations\AndroidSDK\platform-tools\adb.exe -s RF8M33L3WLK install -t -r C:\Projects\Apps\app.appname\android\build\app\outputs\apk\app.apk
[+23392 ms] Performing Streamed Install
Success
[ +2 ms] Installing android\build\app\outputs\apk\app.apk... (completed in 23.4s)
[ +6 ms] executing: C:\Installations\AndroidSDK\platform-tools\adb.exe -s RF8M33L3WLK shell echo -n 0d4daf35397951507aa469d3eecceb6e826a3f62 > /data/local/tmp/sky.app.appname.sha1
[ +88 ms] SM G970F startApp
[ +3 ms] executing: C:\Installations\AndroidSDK\platform-tools\adb.exe -s RF8M33L3WLK shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez
enable-dart-profiling true --ez enable-checked-mode true --ez verify-entry-points true app.appname/app.appname.MainActivity
[ +125 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=app.appname/.MainActivity (has extras) }
[ +1 ms] Waiting for observatory port to be available...
应用程序似乎在最后一行(等待观测站端口)出现的同一瞬间崩溃。不知道我应该在这里寻找什么,或者它可能跌落到哪里。
编辑:
Flutter Doctor -v输出:
[√] Flutter (Channel beta, v1.10.7, on Microsoft Windows [Version 10.0.17763.805], locale en-AU)
• Flutter version 1.10.7 at c:\flutter
• Framework revision e70236e36c (2 weeks ago), 2019-10-02 09:32:30 -0700
• Engine revision 9e6314d348
• Dart version 2.6.0 (build 2.6.0-dev.4.0 1103600280)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at C:\Installations\AndroidSDK\
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• ANDROID_HOME = C:\Installations\AndroidSDK\
• Java binary at: C:\Installations\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
• All Android licenses accepted.
[√] Android Studio (version 3.5)
• Android Studio at C:\Installations\Android Studio
• Flutter plugin version 40.2.2
• Dart plugin version 191.8580
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
[√] Connected device (1 available)
• SM G970F • [xxxxx] • android-arm64 • Android 9 (API 28)
• No issues found!
Edit2: