我有发布模式下的apk,但是应用程序崩溃了。但是调试apk的apk没有崩溃。这是我的本机版本是“ react-native”:“ ^ 0.62.2”和ext {buildToolsVersion =“ 28.0.3“ minSdkVersion = 16 compileSdkVersion = 28 targetSdkVersion = 28} 这是我的android / app / build.gradle
signingConfigs {
debug {
storeFile file('debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
} }
buildTypes {
debug {
signingConfig signingConfigs.debug
}
release {
// Caution! In production, you need to generate your own keystore file.
// see https://facebook.github.io/react-native/docs/signed-apk-android.
signingConfig signingConfigs.debug
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
} }