調用.so 文件時報錯has text relocations
調用.so文件時報如下錯誤:
libcooee.so: has text relocations
說明編譯.so文件時使用了較低版本sdk
而project 中的配置 targetSdkVersion22 大於so編譯時使用的sdkversion,所以只需要把功能中
的targetSdkVersion降低即可
defaultConfig {
applicationId “com.example”
minSdkVersion 16
targetSdkVersion 22
versionCode 1
versionName “1.0”
}