打开应用程序时,Flutter版本APK崩溃。调试正常

时间:2020-02-04 04:42:16

标签: android flutter

Log error snapshot

Signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------\n
Abort message: '[FATAL:flutter/shell/common/shell.cc(234)] Check failed: vm. Must be able to initialize the VM.'

1 个答案:

答案 0 :(得分:0)

这可能是一个保护问题。尝试使用此保护规则。

#Flutter Wrapper
-keep class io.flutter.app.** { ; }
-keep class io.flutter.plugin.* { ; }
-keep class io.flutter.util.* { ; }
-keep class io.flutter.view.* { ; }
-keep class io.flutter.* { ; }
-keep class io.flutter.plugins.* { ; }
-keep class myapp.flutter.*