AndroidException-常见Exception汇总

  1. 1. Invoke-customs are only supported starting with android 0 –min-api 26
  2. 2. 64位CPU的手机无法加载腾讯X5内核

Invoke-customs are only supported starting with android 0 –min-api 26

1
2
3
4
5
6
7
8
9
10
//build.gradle
android {
//... ...
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
}

64位CPU的手机无法加载腾讯X5内核

1
2
3
4
5
6
7
8
9
10
11
//build.gradle
android {
defaultConfig {
// 指定支持的so架构
ndk {
//根据需要 自行选择添加的对应cpu类型的.so库。
abiFilters 'armeabi', 'armeabi-v7a', 'arm64-v8a', "x86"
}
}
}
//复制armeabi中的.so文件到armeabi-v7a、arm64-v8a、x86对应的文件夹