Android Studio编译报错More than one file was found with OS independent path 'lib/armeabi-v7a/libRSSupport.so'
主要是在加入了毛玻璃相关的功能并且项目是一个多moudle依赖的情况下会出现的问题,解决方式也比较简单这里记录一下
packagingOptions { pickFirst 'lib/armeabi-v7a/libRSSupport.so' pickFirst 'lib/x86_64/libRSSupport.so' pickFirst 'lib/x86/libRSSupport.so' pickFirst 'lib/arm64-v8a/libRSSupport.so' pickFirst 'lib/x86_64/librsjni_androidx.so' pickFirst 'lib/x86/librsjni_androidx.so' pickFirst 'lib/arm64-v8a/librsjni_androidx.so' pickFirst 'lib/armeabi-v7a/librsjni_androidx.so' pickFirst 'lib/x86/librsjni.so' pickFirst 'lib/arm64-v8a/librsjni.so' pickFirst 'lib/x86_64/librsjni.so' pickFirst 'lib/armeabi-v7a/librsjni.so' }
对相关的lib做一下过滤就好了,主要是这三个,如果还有其他架构的适配就在对应的加上路径就好了。