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

今天在编译项目的时候发现这个问题,所以就按照往常遇到这样的问题的解决思路试了一下,发现能解决,但一路做了很多处理如下

在项目的gradle文件下的android节点下添加如下代码

packagingOptions {
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
        pickFirst 'lib/armeabi-v7a/libsecsdk.so'
        exclude "lib/armeabi-v7a/libRSSupport.so"
        exclude "lib/arm64-v8a/librsjni.so"
        exclude "lib/arm64-v8a/libRSSupport.so"
        exclude "lib/x86_64/libRSSupport.so"
        exclude "lib/x86/librsjni.so"
        exclude "lib/x86_64/librsjni.so"
        exclude "lib/armeabi-v7a/librsjni.so"
        exclude "lib/x86/libRSSupport.so"
    }

这样弄了很多次才弄好了,这样很繁琐我后期会找到更优解决方案,找到后我会再补充上来。

0 0 vote
Article Rating
Subscribe
提醒
guest
0 评论
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x