在android 6.0以上设备,突然出现app启动异常 lib***.so: has text relocations
其解决方案如下:
compileSdkVersion 23 buildToolsVersion "23.0.1" defaultConfig { applicationId 'com.***' minSdkVersion 16 targetSdkVersion 22 versionCode 1 versionName '1.0' multiDexEnabled = true }
targetSdkVersion 23 -》 targetSdkVersion 22
将targetSdk的版本从23 降到22即可解决问题,这应该是目标版本23在android6.0上的一个检测机制导致的崩溃