其他分享
首页 > 其他分享> > Android原生集成Flutter模块到项目中,编译提示couldn't find "libflutter.so"

Android原生集成Flutter模块到项目中,编译提示couldn't find "libflutter.so"

作者:互联网

由于 libflutter.so 的问题,或者说是安卓编译架构的问题,在编译运行后打开flutter显示的那个页面可能会出现 couldn't find libflutter.so 的问题,解决办法是只使用 armeabi-v7a, 具体配置是修改 app/build.gradle 文档,如下:

android {
        ndk {
            abiFilters "armeabi-v7a"
        }
    }
    buildTypes {
        debug {
            ndk {
                abiFilters "armeabi-v7a"
            }
        }
        release {
            ndk {
                abiFilters "armeabi-v7a"
            }
        }
    }
}

标签:ndk,couldn,armeabi,find,abiFilters,so,v7a,libflutter
来源: https://blog.csdn.net/zxt94/article/details/87879807