美文网首页
65.More than one file was found

65.More than one file was found

作者: 开发者也 | 来源:发表于2021-04-13 16:10 被阅读0次

场景

在集成第三方模块时,需要引入一些so文件,运行项目报错,
More than one file was found with OS independent path 'lib/armeabi-v7a/libnms.so'

解决方案

在启动模块(通常是app模块)的build.gradle中添加如下代码:

android {
    
    ...
 
    // Fix: More than one file was found
    packagingOptions {
        pickFirst 'lib/armeabi-v7a/libnms.so'
    }
}

相关文章

网友评论

      本文标题:65.More than one file was found

      本文链接:https://www.haomeiwen.com/subject/eilclltx.html