老师你好,我打包为apk后,安装在手机上,始终打不开,不知道这个是为啥,在打包时提示这个错误
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformNativeLibsWithMergeJniLibsForRelease'.
More than one file was found with OS independent path 'lib/armeabi-v7a/libapp.so'
然后我就在packagingOptions增加了exclude
packagingOptions{
// 确保app与asr_plugin都依赖的libflutter.so merge时不冲突
pickFirst 'lib/x86_64/libflutter.so'
pickFirst 'lib/x86/libflutter.so'
pickFirst 'lib/arm64-v8a/libflutter.so'
exclude 'lib/armeabi-v7a/libflutter.so'
exclude 'lib/armeabi-v7a/libapp.so'
exclude 'lib/arm64-v8a/libapp.so'
}
打包后我发现apk中并未有v7的so
这是哪里配置错了吗,麻烦帮我看看,谢谢
解锁Flutter开发新姿势,,系统掌握Flutter开发核心技术。
了解课程