More than one file was found with OS independent path ‘lib/armeabi-v7a/xxx.so‘

Posted u013164293

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了More than one file was found with OS independent path ‘lib/armeabi-v7a/xxx.so‘相关的知识,希望对你有一定的参考价值。

错误:

More than one file was found with OS independent path 'lib/armeabi-v7a/libRSSupport.so'

解决方法:

1、在APP的build.gradle中 android节点下面添加对应的 so库依赖

android {
    packagingOptions {
        pickFirst 'lib/armeabi-v7a/libRSSupport.so'
        pickFirst 'lib/arm64-v8a/librsjni.so'
        pickFirst 'lib/arm64-v8a/libRSSupport.so'
        pickFirst 'lib/x86_64/librsjni_androidx.so'
        pickFirst 'lib/x86/librsjni_androidx.so'
    }
}

2、一般如上方法即可解决,如果不能

在app下的build.gradle中defaultConfig中添加:

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        vectorDrawables.useSupportLibrary = true
 
        renderscriptTargetApi 25
        renderscriptSupportModeEnabled true    // Enable RS support

 如果您有其他需要,或者相关内容有什么不完善的地方,请留言给我!!

您也可以加入下方qq群,共同学习进步,感谢参与!!

Android学习交流群:523487222

点击链接加入群【Android学习群】

 

以上是关于More than one file was found with OS independent path ‘lib/armeabi-v7a/xxx.so‘的主要内容,如果未能解决你的问题,请参考以下文章

More than one file was found with OS independent path 'lib/arm64-v8a/libsqlite.so'

我的Android进阶之旅彻底解决Android Studio编译so库的时候报错:More than one file was found with OS independent path

我的Android进阶之旅彻底解决Android Studio编译so库的时候报错:More than one file was found with OS independent path

关于报错“More than one fragment with the name [spring_web] was found. This is not legal ...”的解决办法

关于报错“More than one fragment with the name [spring_web] was found. This is not legal ...”的解决办法

记录一次随意操作数据库,插入新数据,导致与程序添加新数据时,引起的主键值重复问题。More than one row with the given identifier was found: 1690