您的位置:首页 > 移动开发 > Android开发

Android加载so文件报java.lang.UnsatisfiedLinkError: has text relocations

2017-09-25 14:33 357 查看
错误详情:

java.lang.UnsatisfiedLinkError: dlopen failed: has text relocations

出现这个异常,是因为你项目的targetSdkVersion太高,你的so库不能支持

解决办法将targetSdkVersion降低,建议降到23以下试试,不行就继续降低
例如:
compileSdkVersion 24
buildToolsVersion "24.0.3"
defaultConfig {
applicationId "com.example.th.elive"
minSdkVersion 15
targetSdkVersion 21//将这里降低
versionCode 28
versionName "1.0.2.8"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

multiDexEnabled true
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  has text relocations