Tag Archives: More than one file was found with OS independent path ‘lib/armeabiv7a/libRSSupport.so’

[Solved] Android Studio Compile Error: More than one file was found with OS independent path ‘lib/armeabi-v7a/libRSSupport.so’

It mainly refers to the problems that will occur when the functions related to ground glass are added and the project is dependent on multiple molds. The solution is also relatively simple. Here is a record

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'  

}

It’s good to filter the related LIBS, mainly these three. If there are other architecture adaptations, it’s good to add paths to the corresponding ones.