当发布模式但在调试模式下时,apk崩溃可以正常工作

时间:2020-06-02 05:15:58

标签: android react-native apk

我有发布模式下的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"
    } }

0 个答案:

没有答案