我对 react native release APK 有疑问。
该应用程序在调试模式下运行,但在发布模式下立即崩溃
某些电话将被安装,但是当我运行它时,它会立即崩溃,而其他一些电话则不会安装这是我的应用程序,就像这样...
这是我的包依赖项列表
"dependencies": {
"axios": "^0.18.0",
"jwt-decode": "^2.2.0",
"native-base": "^2.12.1",
"react": "16.8.3",
"react-native": "0.59.8",
"react-native-awesome-alerts": "^1.2.0",
"react-native-elements": "^1.1.0",
"react-native-gesture-handler": "^1.2.1",
"react-native-maps": "^0.24.2",
"react-native-otp-inputs": "^3.0.2",
"react-native-swiper": "^1.5.14",
"react-native-vector-icons": "^6.4.2",
"react-navigation": "^3.9.2",
"react-redux": "^5.0.7",
"redux": "^3.7.2",
"redux-thunk": "^2.2.0"
},
而我的 android/build.gradle 文件是 -
buildscript {
ext {
buildToolsVersion = "28.0.3"
minSdkVersion = 16
compileSdkVersion = 28
targetSdkVersion = 28
supportLibVersion = "28.0.0"
multiDexEnabled = true
}
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.1'
}
}