解决两个依赖包中都含有相同so包问题

745 阅读1分钟

直接上代码

  1. 错误详情。

     More than one file was found with OS independent path 'lib/armeabi-v7a/xxxx.so'
    
  2. 在appModule中的Build.gradle中android{}中添加

packagingOptions {
    pickFirst 'lib/armeabi-v7a/libstlport_shared.so'   //引号后面
}