更新后颤振完全损坏(再次)

时间:2019-10-16 00:11:39

标签: flutter

TL; DR版本:

有一堆我经常处理的应用程序,其中一些已发布到应用程序商店。最近更新了flutter和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:

Stacktrace结果,根据要求:

gradlew build --stacktrace
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details

> Configure project :app
WARNING: API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getMergeResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.

> Task :firebase_admob:compileProfileJavaWithJavac
Note: C:\Users\riley\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_admob-0.9.0+7\android\src\main\java\io\flutter\plugins\firebaseadmob\AdRequestBuilderFactory.java uses or overrides a deprecated A
PI.
Note: Recompile with -Xlint:deprecation for details.

> Task :in_app_purchase:compileProfileJavaWithJavac
Note: C:\Users\riley\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\in_app_purchase-0.2.1+4\android\src\main\java\io\flutter\plugins\inapppurchase\InAppPurchasePlugin.java uses unchecked or unsafe operations
.
Note: Recompile with -Xlint:unchecked for details.

> Task :url_launcher:compileProfileJavaWithJavac
Note: C:\Users\riley\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\url_launcher-5.1.6\android\src\main\java\io\flutter\plugins\urllauncher\WebViewActivity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

> Task :vibration:compileProfileJavaWithJavac
Note: C:\Users\riley\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\vibration-1.2.1\android\src\main\java\com\benjaminabel\vibration\VibrationPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

> Task :app:processProfileGoogleServices
Parsing json file: C:\Projects\Apps\app_name\android\app\google-services.json

> Task :app:processProfileManifest
C:\Projects\Apps\app_name\android\app\src\main\AndroidManifest.xml:24:9-31:50 Warning:
        activity#com.google.firebase.auth.internal.FederatedSignInActivity@android:launchMode was tagged at AndroidManifest.xml:24 to replace other declarations but no other declaration present

> Task :firebase_admob:compileReleaseJavaWithJavac
Note: C:\Users\riley\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_admob-0.9.0+7\android\src\main\java\io\flutter\plugins\firebaseadmob\AdRequestBuilderFactory.java uses or overrides a deprecated A
PI.
Note: Recompile with -Xlint:deprecation for details.

> Task :in_app_purchase:compileReleaseJavaWithJavac
Note: C:\Users\riley\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\in_app_purchase-0.2.1+4\android\src\main\java\io\flutter\plugins\inapppurchase\InAppPurchasePlugin.java uses unchecked or unsafe operations
.
Note: Recompile with -Xlint:unchecked for details.

> Task :url_launcher:compileReleaseJavaWithJavac
Note: C:\Users\riley\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\url_launcher-5.1.6\android\src\main\java\io\flutter\plugins\urllauncher\WebViewActivity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

> Task :vibration:compileReleaseJavaWithJavac
Note: C:\Users\riley\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\vibration-1.2.1\android\src\main\java\com\benjaminabel\vibration\VibrationPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

> Task :app:processReleaseGoogleServices
Parsing json file: C:\Projects\Apps\app_name\android\app\google-services.json

> Task :app:processReleaseManifest
C:\Projects\Apps\app_name\android\app\src\main\AndroidManifest.xml:24:9-31:50 Warning:
        activity#com.google.firebase.auth.internal.FederatedSignInActivity@android:launchMode was tagged at AndroidManifest.xml:24 to replace other declarations but no other declaration present
C:\Users\riley\.gradle\caches\transforms-1\files-1.1\jetified-play-services-ads-18.1.1.aar\6d23619f8b95b25f4464612252358ef0\jars\classes.jar: D8: Type `sun.misc.Unsafe` was not found, it is required for default
 or static interface methods desugaring of `void com.google.android.gms.internal.ads.zzdbf$zzi.<clinit>()`
C:\Users\riley\.gradle\caches\transforms-1\files-1.1\play-services-ads-base-18.1.1.aar\231d5d4dcfade07eb7a0be8b90002812\jars\classes.jar: D8: Type `libcore.io.Memory` was not found, it is required for default o
r static interface methods desugaring of `void com.google.android.gms.internal.ads.zzdta$zzc.zza(long, byte)`
C:\Users\riley\.gradle\caches\transforms-1\files-1.1\play-services-ads-base-18.1.1.aar\231d5d4dcfade07eb7a0be8b90002812\jars\classes.jar: D8: Type `libcore.io.Memory` was not found, it is required for default o
r static interface methods desugaring of `void com.google.android.gms.internal.ads.zzdta$zza.zza(long, byte)`

> Task :app:lint
Calling mockable JAR artifact transform to create file: C:\Users\riley\.gradle\caches\transforms-1\files-1.1\android.jar\7989af089b4a6324473ebc04dc57cffd\android.jar with input C:\Installations\AndroidSDK\platf
orms\android-29\android.jar
Calling mockable JAR artifact transform to create file: C:\Users\riley\.gradle\caches\transforms-1\files-1.1\android.jar\26ca7948663a2f90731d5c1d010b2880\android.jar with input C:\Installations\AndroidSDK\platf
orms\android-28\android.jar
Calling mockable JAR artifact transform to create file: C:\Users\riley\.gradle\caches\transforms-1\files-1.1\android.jar\338850fb4843944a0a1dcfccaa4cb553\android.jar with input C:\Installations\AndroidSDK\platf
orms\android-27\android.jar
Ran lint on variant debug: 5 issues found
Ran lint on variant profile: 5 issues found
Ran lint on variant release: 5 issues found
Wrote HTML report to file:///C:/Projects/Apps/app_name/android/build/app/reports/lint-results.html
Wrote XML report to file:///C:/Projects/Apps/app_name/android/build/app/reports/lint-results.xml

> Task :app_review:lint
Ran lint on variant debug: 1 issues found
Ran lint on variant profile: 1 issues found
Ran lint on variant release: 1 issues found
Wrote HTML report to file:///C:/Projects/Apps/app_name/android/build/app_review/reports/lint-results.html
Wrote XML report to file:///C:/Projects/Apps/app_name/android/build/app_review/reports/lint-results.xml

> Task :auto_orientation:lint
Ran lint on variant profile: 1 issues found
Ran lint on variant debug: 1 issues found
Ran lint on variant release: 1 issues found
Wrote HTML report to file:///C:/Projects/Apps/app_name/android/build/auto_orientation/reports/lint-results.html
Wrote XML report to file:///C:/Projects/Apps/app_name/android/build/auto_orientation/reports/lint-results.xml

> Task :firebase_admob:lint
Ran lint on variant release: 2 issues found
Ran lint on variant debug: 2 issues found
Ran lint on variant profile: 2 issues found
Wrote HTML report to file:///C:/Projects/Apps/app_name/android/build/firebase_admob/reports/lint-results.html
Wrote XML report to file:///C:/Projects/Apps/app_name/android/build/firebase_admob/reports/lint-results.xml

> Task :firebase_auth:lint
Ran lint on variant debug: 4 issues found
Ran lint on variant release: 4 issues found
Ran lint on variant profile: 4 issues found
Wrote HTML report to file:///C:/Projects/Apps/app_name/android/build/firebase_auth/reports/lint-results.html
Wrote XML report to file:///C:/Projects/Apps/app_name/android/build/firebase_auth/reports/lint-results.xml

> Task :firebase_core:lint
Ran lint on variant release: 3 issues found
Ran lint on variant profile: 3 issues found
Ran lint on variant debug: 3 issues found
Wrote HTML report to file:///C:/Projects/Apps/app_name/android/build/firebase_core/reports/lint-results.html
Wrote XML report to file:///C:/Projects/Apps/app_name/android/build/firebase_core/reports/lint-results.xml

> Task :firebase_dynamic_links:lint
Ran lint on variant profile: 4 issues found
Ran lint on variant release: 4 issues found
Ran lint on variant debug: 4 issues found
Wrote HTML report to file:///C:/Projects/Apps/app_name/android/build/firebase_dynamic_links/reports/lint-results.html
Wrote XML report to file:///C:/Projects/Apps/app_name/android/build/firebase_dynamic_links/reports/lint-results.xml

> Task :image_picker:lint
Ran lint on variant debug: 4 issues found
Ran lint on variant profile: 4 issues found
Ran lint on variant release: 4 issues found
Wrote HTML report to file:///C:/Projects/Apps/app_name/android/build/image_picker/reports/lint-results.html
Wrote XML report to file:///C:/Projects/Apps/app_name/android/build/image_picker/reports/lint-results.xml

> Task :in_app_purchase:lint
Ran lint on variant debug: 4 issues found
Ran lint on variant release: 4 issues found
Ran lint on variant profile: 4 issues found
Wrote HTML report to file:///C:/Projects/Apps/app_name/android/build/in_app_purchase/reports/lint-results.html
Wrote XML report to file:///C:/Projects/Apps/app_name/android/build/in_app_purchase/reports/lint-results.xml

> Transform byte-buddy-agent.jar (net.bytebuddy:byte-buddy-agent:1.8.0) with JetifyTransform
ERROR: [TAG] Failed to resolve variable '${version.junit}'
ERROR: [TAG] Failed to resolve variable '${version.mockito}'

> Transform byte-buddy.jar (net.bytebuddy:byte-buddy:1.8.0) with JetifyTransform
ERROR: [TAG] Failed to resolve variable '${project.groupId}'
ERROR: [TAG] Failed to resolve variable '${project.version}'
ERROR: [TAG] Failed to resolve variable '${version.asm}'
ERROR: [TAG] Failed to resolve variable '${version.asm}'
ERROR: [TAG] Failed to resolve variable '${version.junit}'
ERROR: [TAG] Failed to resolve variable '${version.mockito}'
ERROR: [TAG] Failed to resolve variable '${version.asm}'
ERROR: [TAG] Failed to resolve variable '${version.asm}'
ERROR: [TAG] Failed to resolve variable '${project.groupId}'
ERROR: [TAG] Failed to resolve variable '${project.version}'

> Task :package_info:lint
Ran lint on variant debug: 1 issues found
Ran lint on variant profile: 1 issues found
Ran lint on variant release: 1 issues found
Wrote HTML report to file:///C:/Projects/Apps/app_name/android/build/package_info/reports/lint-results.html
Wrote XML report to file:///C:/Projects/Apps/app_name/android/build/package_info/reports/lint-results.xml

> Task :screen:lint
Ran lint on variant profile: 0 issues found
Ran lint on variant debug: 0 issues found
Ran lint on variant release: 0 issues found

> Task :shared_preferences:lint
Ran lint on variant release: 9 issues found
Ran lint on variant profile: 9 issues found
Ran lint on variant debug: 9 issues found
Wrote HTML report to file:///C:/Projects/Apps/app_name/android/build/shared_preferences/reports/lint-results.html
Wrote XML report to file:///C:/Projects/Apps/app_name/android/build/shared_preferences/reports/lint-results.xml

> Task :url_launcher:lint
Ran lint on variant release: 1 issues found
Ran lint on variant debug: 1 issues found
Ran lint on variant profile: 1 issues found
Wrote HTML report to file:///C:/Projects/Apps/app_name/android/build/url_launcher/reports/lint-results.html
Wrote XML report to file:///C:/Projects/Apps/app_name/android/build/url_launcher/reports/lint-results.xml

> Task :vibration:lint
Ran lint on variant release: 1 issues found
Ran lint on variant debug: 1 issues found
Ran lint on variant profile: 1 issues found
Wrote HTML report to file:///C:/Projects/Apps/app_name/android/build/vibration/reports/lint-results.html
Wrote XML report to file:///C:/Projects/Apps/app_name/android/build/vibration/reports/lint-results.xml

BUILD SUCCESSFUL in 4m 47s
1044 actionable tasks: 679 executed, 365 up-to-date

EDIT3:

pubspec.yaml插件列表:

  cupertino_icons: 0.1.2
  firebase_admob: 0.9.0+7
  screen: 0.0.5
  image_picker: 0.6.1+4
  firebase_auth: 0.14.0+5
  shared_preferences: 0.5.3+4
  rflutter_alert: 1.0.3
  url_launcher: 5.1.6
  in_app_purchase: 0.2.1+4
  firebase_dynamic_links: 0.5.0+1
  app_review: 1.0.0
  auto_orientation: 1.0.5
  vibration: 1.2.1

我使用这些插件已经好几个月了,但可能与更新有关。

EDIT4:

Android Gradle同步失败:

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileFlutterBuildDebugArm'.
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:110)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:77)
    at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
    at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59)
    at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:59)
    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101)
    at org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter.java:44)
    at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:91)
    at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62)
    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:59)
    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
    at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
    at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.run(EventFiringTaskExecuter.java:51)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
    at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:46)
    at org.gradle.execution.taskgraph.LocalTaskInfoExecutor.execute(LocalTaskInfoExecutor.java:42)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:277)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:262)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:135)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:130)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.execute(DefaultTaskPlanExecutor.java:200)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.executeWithWork(DefaultTaskPlanExecutor.java:191)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.run(DefaultTaskPlanExecutor.java:130)
    at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
    at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
    at java.lang.Thread.run(Thread.java:748)
Caused by: org.gradle.process.internal.ExecException: Process 'command 'c:\flutter\bin\flutter.bat'' finished with non-zero exit value 1
    at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:395)
    at org.gradle.process.internal.DefaultExecAction.execute(DefaultExecAction.java:37)
    at org.gradle.api.internal.file.DefaultFileOperations.exec(DefaultFileOperations.java:232)
    at org.gradle.api.internal.project.DefaultProject.exec(DefaultProject.java:1112)
    at org.gradle.api.internal.project.DefaultProject.exec(DefaultProject.java:1107)
    at org.gradle.api.Project$exec$7.call(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:128)
    at BaseFlutterTask.buildBundle(c:\flutter\packages\flutter_tools\gradle\flutter.gradle:787)
    at BaseFlutterTask$buildBundle.callCurrent(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:157)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:161)
    at FlutterTask.build(c:\flutter\packages\flutter_tools\gradle\flutter.gradle:918)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
    at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:46)
    at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)
    at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)
    at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:801)
    at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:768)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:131)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
    at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:120)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:99)
    ... 34 more

3 个答案:

答案 0 :(得分:1)

我基本上必须从头开始重建我的应用程序。更新颤动绝对是一场噩梦,我强烈建议您在绝对必要之前不要这样做。

解决方法是将原始应用放在一旁,重新安装所有内容,从头安装到最新版本。

然后尝试一次添加一个插件,每次它们失败时,回滚一个版本,然后重试。最终,您将了解实际可用的版本。

一旦您可以使用添加的插件编译空的应用程序,一次就开始一次粘贴旧代码,然后重新运行。这样,您将能够解决各个错误。

这个平台的绝对噩梦。但是这种方法会让您失望。

答案 1 :(得分:0)

似乎您的构建文件有问题。

您可以尝试运行flutter clean

这可以解决您的问题。

答案 2 :(得分:0)

尝试添加firebase_core插件,以解决我的firebase插件问题