Flutter module模式问题整理

android项目接入Flutter

问题一:

   2018-12-14 14:11:51.865 13328-13328/包名 E/flutter:[ERROR:flutter/runtime/dart_vm.cc(259)] VM snapshot must be valid. 
   2018-12-14 14:11:51.865 13328-13328/包名 A/flutter:[FATAL:flutter/shell/common/shell.cc(212)] Check failed: vm. Must be able to initialize the VM.
   2018-12-14 14:11:51.866 13328-13328/包名 A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 13328 (包名), pid 13328 (包名)
问题原因:我的项目里用了友盟多渠道打包,把多渠道打包相关的配置删除=>clean
问题解决:正在寻找。。。目前只能更换合适的第三方

问题二:

    java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file 
    "/data/app/包名-ByONc3XVTut87IekSqMjdg==/base.apk"],nativeLibraryDirectories=
    [/data/app/包名-ByONc3XVTut87IekSqMjdg==/lib/arm64, /data/app包名-
    ByONc3XVTut87IekSqMjdg==/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]] couldn't find 
    "libflutter.so"
问题原因:关注gradle:loacal_aar里面只提供了x86和armeabi-v7a两种格式
问题解决:
    android {
        ...
        defaultConfig {
            ...
            ndk {
                abiFilters "armeabi-v7a", "x86"
            }
        }
    }

问题三: android修改包名点击查看

问题四:

Process 'command 路径/flutter/bin/flutter'' finished with non-zero exit value 1
问题原因:不明
问题解决:build => clean project
    原文作者:楊帥
    原文地址: https://www.jianshu.com/p/f2f9fd01b56c
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞