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'
}
}
网友评论