释放APK无法正常运行,使我的设备无法正常运行

时间:2020-09-23 12:51:26

标签: android ios flutter dart

在调试模式下(使用电缆连接),我的应用程序按预期运行。但是当我从Android Studio菜单 Build => Flutter => Build apk 的顶部创建APK时,尝试安装并打开该APK时我的应用无法正常运行。它在Log中给出此错误:

I/flutter (31756): Another exception was thrown: Instance of 'Diagnostics Property'
I/flutter (31756): Another exception was thrown: Instance of 'Diagnostics Property'
I/flutter (31756): Another exception was thrown: Instance of 'Diagnostics Property'

我尝试在发布,调试和配置清单文件中放置INTERNET Permisson

我先执行flutter clean,然后执行flutter build apk --release,但发生相同的问题。

我的环境

[✓] Flutter (Channel stable, 1.20.4, on Linux, locale en_IN)
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.49.0)
[✓] Connected device (1 available)

这是我扑朔迷离的--release --verbose File = Verbose Log

这是我的pubspec文件= pubspec file

这是我的初始化代码= init Code

0 个答案:

没有答案