本文详细介绍了在Android Studio中遇到编译so库时出现'More than one file was found...'错误的问题,通过分析问题,提出设置packagingOptions的pickFirst属性作为临时解决方案,但指出其可能导致apk体积增加的弊端。最后,文章提供了一个彻底解决问题的方法,即移动预构建库到jniLibs之外的位置,并修改CMakeLists.txt文件,以避免构建错误。
xecution failed for task ':app:mergeDebugNativeLibs'.> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade> More than one file was found with OS independent path