More than one file was found wit

2021-01-27  本文已影响0人  CentForever

title: More than one file was found with OS independent path 'lib-x86-libc++_
date: 2019-12-25 10:36:53
categories:
- Android
tags:
- NDK


原因是引入了两个三方库,用到了一样的.so

android {
    defaultConfig {

   }
 packagingOptions {//加上这些代码  More than one file was found with OS independent path 'lib/x86/libc++_shared.so'
        pickFirst 'lib/armeabi-v7a/libc++_shared.so'
        pickFirst 'lib/armeabi-v8a/libc++_shared.so'
        pickFirst 'lib/arm64-v8a/libc++_shared.so'
        pickFirst 'lib/x86/libc++_shared.so'
        pickFirst 'lib/x86_64/libc++_shared.so'
    }
}
上一篇 下一篇

猜你喜欢

热点阅读