flutter 混程App启动崩溃Check failed: vm. Must be able to initialize the VM.

来源:11-10 Flutter与Native通信-Android端实战【实战应用】

慕侠1591923

2019-03-31

03-31 22:58:36.913 27680-27680/? E/flutter: [ERROR:flutter/runtime/dart_vm.cc(265)] VM snapshot must be valid.
03-31 22:58:36.913 27680-27680/? A/flutter: [FATAL:flutter/shell/common/shell.cc(210)] Check failed: vm. Must be able to initialize the VM.

写回答

3回答

CrazyCodeBoy

2019-04-02

Flutter官方仓库有这个这个问题的讨论,参考下它里面的解决方案吧:

https://github.com/flutter/flutter/issues/24641


0
0

慕侠1591923

提问者

2019-04-02

04-02 17:31:21.913 14687-14687/? I/art: Late-enabling -Xcheck:jni

04-02 17:31:21.952 14687-14687/? D/Environment: 222 rawExternalStorage = /storage/sdcard0

04-02 17:31:21.990 14687-14687/com.caizs.wnl V/SettingsInterface: invalidate [system]: current 208 != cached 0

04-02 17:31:21.997 14687-14687/com.caizs.wnl D/ActivityThread: hoder:android.app.IActivityManager$ContentProviderHolder@13874c56,provider,holder.Provider:android.content.ContentProviderProxy@2a61e4d7

04-02 17:31:22.025 14687-14687/com.caizs.wnl D/Proxy: setHttpRequestCheckHandler

04-02 17:31:22.041 14687-14687/com.caizs.wnl I/art: cache_oat_file/data/dalvik-cache/arm/data@app@com.caizs.wnl-1@split_lib_dependencies_apk.apk@classes.dex==nullptr

04-02 17:31:22.651 14687-14687/com.caizs.wnl I/art: cache_oat_file/data/dalvik-cache/arm/data@app@com.caizs.wnl-1@split_lib_slice_0_apk.apk@classes.dex==nullptr

04-02 17:31:22.673 14687-14687/com.caizs.wnl I/art: cache_oat_file/data/dalvik-cache/arm/data@app@com.caizs.wnl-1@split_lib_slice_1_apk.apk@classes.dex==nullptr

04-02 17:31:22.684 14687-14687/com.caizs.wnl I/art: cache_oat_file/data/dalvik-cache/arm/data@app@com.caizs.wnl-1@split_lib_slice_2_apk.apk@classes.dex==nullptr

04-02 17:31:22.693 14687-14687/com.caizs.wnl I/art: cache_oat_file/data/dalvik-cache/arm/data@app@com.caizs.wnl-1@split_lib_slice_3_apk.apk@classes.dex==nullptr

04-02 17:31:22.702 14687-14687/com.caizs.wnl I/art: cache_oat_file/data/dalvik-cache/arm/data@app@com.caizs.wnl-1@split_lib_slice_4_apk.apk@classes.dex==nullptr

04-02 17:31:22.712 14687-14687/com.caizs.wnl I/art: cache_oat_file/data/dalvik-cache/arm/data@app@com.caizs.wnl-1@split_lib_slice_5_apk.apk@classes.dex==nullptr

04-02 17:31:22.728 14687-14687/com.caizs.wnl I/art: cache_oat_file/data/dalvik-cache/arm/data@app@com.caizs.wnl-1@split_lib_slice_6_apk.apk@classes.dex==nullptr

04-02 17:31:22.741 14687-14687/com.caizs.wnl I/art: cache_oat_file/data/dalvik-cache/arm/data@app@com.caizs.wnl-1@split_lib_slice_7_apk.apk@classes.dex==nullptr

04-02 17:31:22.749 14687-14687/com.caizs.wnl I/art: cache_oat_file/data/dalvik-cache/arm/data@app@com.caizs.wnl-1@split_lib_slice_8_apk.apk@classes.dex==nullptr

04-02 17:31:22.750 14687-14687/com.caizs.wnl I/art: cache_oat_file/data/dalvik-cache/arm/data@app@com.caizs.wnl-1@split_lib_slice_9_apk.apk@classes.dex==nullptr

04-02 17:31:22.771 14687-14687/com.caizs.wnl D/ActivityThread: installProvider: context.getPackageName()=com.caizs.wnl

04-02 17:31:22.778 14687-14687/com.caizs.wnl I/InstantRun: starting instant run server: is main process

04-02 17:31:22.800 14687-14707/com.caizs.wnl W/art: Suspending all threads took: 6.184ms

04-02 17:31:22.802 14687-14707/com.caizs.wnl I/art: Background partial concurrent mark sweep GC freed 89(7KB) AllocSpace objects, 0(0B) LOS objects, 41% free, 1430KB/2MB, paused 7.704ms total 23.177ms

04-02 17:31:22.919 14687-14713/com.caizs.wnl I/ResourceExtractor: Found extracted resources res_timestamp-303-1554197279624

04-02 17:31:22.931 14687-14687/com.caizs.wnl D/ActivityThread: BIND_APPLICATION handled : 0 / AppBindData{appInfo=ApplicationInfo{1ddfc2a9 com.caizs.wnl}}

04-02 17:31:22.932 14687-14687/com.caizs.wnl V/ActivityThread: Handling launch of ActivityRecord{1d4b902e token=android.os.BinderProxy@30ae97cf {com.caizs.wnl/com.caizs.wnl.SplashFragmentActivity}}

04-02 17:31:23.095 14687-14687/com.caizs.wnl V/ActivityThread: ActivityRecord{1d4b902e token=android.os.BinderProxy@30ae97cf {com.caizs.wnl/com.caizs.wnl.SplashFragmentActivity}}: app=com.caizs.wnl.MyApplication@1c8e065, appName=com.caizs.wnl, pkg=com.caizs.wnl, comp={com.caizs.wnl/com.caizs.wnl.SplashFragmentActivity}, dir=/data/app/com.caizs.wnl-1/base.apk

04-02 17:31:23.147 14687-14687/com.caizs.wnl W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable

04-02 17:31:23.151 14687-14707/com.caizs.wnl W/art: Suspending all threads took: 6.121ms

04-02 17:31:23.154 14687-14707/com.caizs.wnl I/art: Background sticky concurrent mark sweep GC freed 2711(741KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 2MB/2MB, paused 7.848ms total 112.582ms

04-02 17:31:23.180 14687-14687/com.caizs.wnl D/ColorDrawable: setColor color = -13619152, ColorDrawable = android.graphics.drawable.ColorDrawable@25fb48

04-02 17:31:23.192 14687-14687/com.caizs.wnl D/Resources: **** getColor id:50856060*** value:-1184275***type:28

04-02 17:31:23.192 14687-14687/com.caizs.wnl D/STATUSBAR_DEBUG: vivo statusbar style 

04-02 17:31:23.192 14687-14687/com.caizs.wnl D/STATUSBAR_DEBUG: windowDrawsFlag set

04-02 17:31:23.192 14687-14687/com.caizs.wnl D/STATUSBAR_DEBUG: IconColor=1

04-02 17:31:23.192 14687-14687/com.caizs.wnl D/STATUSBAR_DEBUG: StatusBarColor final set ff000000

04-02 17:31:23.284 14687-14687/com.caizs.wnl D/ColorDrawable: setColor color = -14606047, ColorDrawable = android.graphics.drawable.ColorDrawable@3cbacd5

04-02 17:31:23.355 14687-14687/com.caizs.wnl D/Resources: **** getColor id:17170659*** value:-1275068417***type:28

04-02 17:31:23.355 14687-14687/com.caizs.wnl D/Resources: **** getColor id:17170659*** value:-1275068417***type:28

04-02 17:31:23.355 14687-14687/com.caizs.wnl D/Resources: **** getColor id:2131034200*** value:-1***type:28

04-02 17:31:23.355 14687-14687/com.caizs.wnl D/Resources: **** getColor id:2131034200*** value:-1***type:28

04-02 17:31:23.516 14687-14687/com.caizs.wnl E/flutter: [ERROR:flutter/runtime/dart_vm.cc(265)] VM snapshot must be valid.

04-02 17:31:23.516 14687-14687/com.caizs.wnl A/flutter: [FATAL:flutter/shell/common/shell.cc(210)] Check failed: vm. Must be able to initialize the VM.

04-02 17:31:23.516 14687-14687/com.caizs.wnl A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 14687 (com.caizs.wnl)


0
0

CrazyCodeBoy

2019-04-01

将完整log贴出来,我帮你分析下

0
0

Flutter从入门到进阶 实战携程网App 一网打尽核心技术

解锁Flutter开发新姿势,,系统掌握Flutter开发核心技术。

4788 学习 · 3270 问题

查看课程