调用.so 文件时报错has text relocations
调用.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”
}

相关文章:

  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2021-04-20
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-30
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2021-05-28
相关资源
相似解决方案