Flutter 从1.5.4升级到 1.12 后 build release 遇到的问题

2019-12-16 14:32:26.787 24344-24344/com.ininwork.inin E/flutter: [ERROR:flutter/runtime/dart_vm_data.cc(18)] VM snapshot invalid and could not be inferred from settings.
2019-12-16 14:32:26.787 24344-24344/com.ininwork.inin E/flutter: [ERROR:flutter/runtime/dart_vm.cc(241)] Could not setup VM data to bootstrap the VM from.
2019-12-16 14:32:26.787 24344-24344/com.ininwork.inin E/flutter: [ERROR:flutter/runtime/dart_vm_lifecycle.cc(84)] Could not create Dart VM instance.
2019-12-16 14:32:26.787 24344-24344/com.ininwork.inin A/flutter: [FATAL:flutter/shell/common/shell.cc(234)] Check failed: vm. Must be able to initialize the VM.
    
    
    --------- beginning of crash
2019-12-16 14:32:26.787 24344-24344/com.ininwork.inin A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 24344 (m.ininwork.inin), pid 24344 (m.ininwork.inin)
2019-12-16 14:32:26.844 24344-24435/com.ininwork.inin E/awcn.TnetSpdySession: |[seq:umeng:5ae97863f43e48476c000032.AWCN1_1] [spdyCustomControlFrameRecvCallback] len:217 frameCb:com.taobao.accs.net.j@3ba37fe
2019-12-16 14:32:26.847 24344-24435/com.ininwork.inin E/awcn.TnetSpdySession: |[seq:umeng:5ae97863f43e48476c000032.AWCN1_1] str:20 0 0 d5 0 d3 60 0 2c 58 64 55 46 44 4d 51 55 59 77 6f 44 41 48 30 54 67 34 30 46 34 6a 51 6f 7c 63 6f 6d 2e 69 6e 69 6e 77 6f 72 6b 2e 69 6e 69 6e 7c 7c 5 33 7c 64 6d 7c f 31 35 37 36 34 37 37 39 34 36 34 33 32 2e 32 0 0 7b 22 64 61 74 61 22 3a 7b 22 70 61 63 6b 61 67 65 4e 61 6d 65 73 22 3a 5b 22 63 6f 6d 2e 61 75 74 6f 6e 61 76 69 2e 6d 69 6e 69 6d 61 70 22 2c 22 63 6f 6d 2e 79 6f 75 6b 75 2e 70 68 6f 6e 65 22 2c 22 63 6f 6d 2e 69 6e 69 6e 77 6f 72 6b 2e 69 6e 69 6e 22 5d 2c 22 73 75 62 6d 69 74 41 70 70 52 65 73 22 3a 66 61 6c 73 65 7d 2c 22 63 6f 64 65 22 3a 32 30 30 2c 22 6d 65 73 73 61 67 65 22 3a 22 73 75 63 63 65 73 73 22 7d 
2019-12-16 14:32:26.860 24451-24451/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2019-12-16 14:32:26.860 24451-24451/? A/DEBUG: Build fingerprint: 'OnePlus/OnePlus3/OnePlus3T:9/PKQ1.181203.001/1906222331:user/release-keys'
2019-12-16 14:32:26.860 24451-24451/? A/DEBUG: Revision: '0'
2019-12-16 14:32:26.861 24451-24451/? A/DEBUG: ABI: 'arm'
2019-12-16 14:32:26.861 24451-24451/? A/DEBUG: pid: 24344, tid: 24344, name: m.ininwork.inin  >>> com.ininwork.inin <<<
2019-12-16 14:32:26.861 24451-24451/? A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
2019-12-16 14:32:26.861 24451-24451/? A/DEBUG: Abort message: '[FATAL:flutter/shell/common/shell.cc(234)] Check failed: vm. Must be able to initialize the VM.

如上,有上面的报错,

google了一圈,果然有遇到相同情况的人

参考:

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

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

但是flutter官方的人却始终没有给出解决方案。。。。。。

一会让你做这个,一会让你做那个,然后按照他们给的方案全都不行,解决不了问题。

-------------------------------------

问题是在1.5.4 的flutter版本是没有这个问题的,升级之后,这个问题就来了。。。

经过一步步探索,终于发现原来是配了一个参数的问题

       debuggable true

改为

   debuggable false

或者直接删掉,问题终于解决了。。。

发布了371 篇原创文章 · 获赞 32 · 访问量 24万+

猜你喜欢

转载自blog.csdn.net/perfectnihil/article/details/103562333