请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

flutter build 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'

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more
 log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 34s

老师的项目克隆下来也是报同样的错误

正在回答 回答被采纳积分+3

1回答

提问者 不悔有你ii 2019-09-20 15:10:22
packagingOptions {
    // 确保app与asr_plugin都依赖的libflutter.so merge时不冲突@https://github.com/card-io/card.io-Android-SDK/issues/186#issuecomment-427552552
    pickFirst 'lib/x86_64/libflutter.so'
    pickFirst 'lib/x86/libflutter.so'
    pickFirst 'lib/arm64-v8a/libflutter.so'
    pickFirst 'lib/arm64-v8a/libapp.so'
    pickFirst 'lib/armeabi-v7a/libapp.so'
}

packagingOptions如上配置即可

2 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信