其他错误修复补充:
Android环境打包发布版本的时候,如果出现如下错误信息,
尝试修改项目下 ./node_modules/react-native-qq/android/build.gradle 文件,
提高Android SDK相关的版本可以解决。
错误信息
------------------------------
react-native-qq:verifyReleaseResources
com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
------------------------------
build.gradle 文件
------------------------------
apply plugin: 'com.android.library'
android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
defaultConfig {
minSdkVersion 16
targetSdkVersion 28
versionCode 1
versionName "1.0"
ndk {
abiFilters "armeabi-v7a", "x86"
}
}
}
repositories {
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
}
dependencies {
compile 'com.facebook.react:react-native:+'
compile files('libs/mta-sdk-1.6.2.jar')
compile files('libs/open_sdk_r5756.jar')
}