这是我第一次将Flutter应用程序上传到Google Play 我做了flutter.io指南中的所有步骤 我的应用程序在调试模式下像超级按钮一样工作,因此我创建了一个密钥库并引用了它 以及Gradle中的已配置签名 但是最后当我跑步
flutter build apk --release
或
flutter run --release
出现以下错误
Unhandled exception: Assertion failed.
assertx (package:vm/transformations/type_flow/utils.dart:34:5)
SummaryCollector.crea teSummary (package:vm/transformations/type_flow/summary_collector.dart:331:5)
TypeFlowAnalysis.getSummary (package:vm/transformations/type_flow/analysis.dart:1408:52)
DirectInvocation._processFunction (package:vm/transformations/type_flow/analysis.dart:240:42)
_DirectInvocation.process (package:vm/transformations/type_flow/analysis.dart:174:14)
_WorkList.processInvocation (package:vm/transformations/type_flow/analysis.dart:1294:32)
_WorkList.process (package:vm/transformations/type_flow/analysis.dart:1274:7)
TypeFlowAnalysis.process (package:vm/transformations/type_flow/analysis.dart:1421:14)
transformComponent (package:vm/transformations/type_flow/transformer.dart:70:20)
_runGlobalTransformations (package:vm/kernel_front_end.dart:381:5) <asynchronous suspension>
compileToKernel (package:vm/kernel_front_end.dart:300:11) <asynchronous suspension>
FrontendCompiler.compile.<anonymous closure> (package:vm/frontend_server.d art:383:56)
new Future.<anonymous closure> (dart:async/future.dart:176:37)
_rootRun (dart:async/zone.dart:1120:38)
_CustomZone.run (dart:async/zone.dart:1021:19)
_Cust omZone.runGuarded (dart:async/zone.dart:923:7)
_CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23)
_rootRun (dart:async/zone.dart:1124:13)
_CustomZone.run (dart:async/zone.dart:1021:19)
_CustomZone.bindCallbac k.<anonymous closure> (dart:async/zone.dart:947:23)
Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:21:15)
_Timer._runTim ers (dart:isolate-patch/timer_impl.dart:382:19)
_Timer._handleMessage (dart:isolate-patch/timer_impl.dart:416:5)
_RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)
> Compiler terminated unexpectedly.
该如何解决?
P.s。 my flutter doctor -v
[√] Flutter(频道稳定,在Microsoft Windows上为v1.9.1 + hotfix.4 [版本10.0.18362.267],语言环境为英语)•Flutter版本 1.9.1 + hotfix.4,位于C:\ Users \ t.ghassan \ flutter •框架修订版cc949a8e8b(9周前),2019-09-27 15:04:59 -0700 •引擎修订版b863200c37
[√] Android工具链-为Android设备开发(Android SDK 版本29.0.2) •位于C:\ Users \ t.ghassan \ AppData \ Local \ Android \ sdk的Android SDK •未配置Android NDK位置(可选;对本机性能分析支持很有用) •平台android-29,构建工具29.0.2 •Java二进制文件位于:C:\ Program Files \ Android \ Android Studio \ jre \ bin \ java •Java版本OpenJDK运行时环境(内部版本1.8.0_152-release-1024-b02) •接受所有Android许可。 [√] Android Studio(3.1版) •位于C:\ Program Files \ Android \ Android Studio的Android Studio •Flutter插件版本29.0.1 •Dart插件版本173.4700 •Java版本OpenJDK运行时环境(内部版本1.8.0_152-release-1024-b02)
[√] VS代码(1.40.1版) •VS代码位于C:\ Users \ t.ghassan \ AppData \ Local \ Programs \ Microsoft VS代码 •Flutter扩展版本3.6.0
[√]已连接设备(1个可用) •为x86构建的Android SDK•仿真器5556•android-x86•Android 10(API 29)(仿真器)
•找不到问题!