首页 > 其他分享 >2023-02-13 More than one file was found with OS independent path 'lib/armeabi-v7a/libfbjni.so&#

2023-02-13 More than one file was found with OS independent path 'lib/armeabi-v7a/libfbjni.so&#

时间:2023-02-13 13:14:46浏览次数:63  
标签:02 independent 13 libfbjni lib armeabi so jniLibs v7a

as工具运行rn项目报错:More than one file was found with OS independent path 'lib/armeabi-v7a/libfbjni.so'. If you are using jniLibs and CMake IMPORTED targets。
翻译:找到了多个具有独立于操作系统的路径“lib/armeabi-v7a/libfbjni.so”的文件。如果您正在使用jniLibs和CMakeIMPORTED目标。

原因:项目引用了多个一样的库or库的路径相同导致(勉强可以这么理解)。

解决方案:打开项目/android/app/build.gradle,在里面找到android对象,并在里面添加如下代码:

 packagingOptions {     
     exclude 'lib/armeabi-v7a/libfbjni.so' // 过滤该文件
}

 packagingOptions不止exclude一种使用方法,详情请看:http://t.csdn.cn/9tMKs

标签:02,independent,13,libfbjni,lib,armeabi,so,jniLibs,v7a
From: https://www.cnblogs.com/iuniko/p/17115970.html

相关文章