无法在发布模式下运行反应本机 Android 应用程序。它在发布模式下成功构建,但是当打开并运行它时它崩溃了。如果在发布模式下使用 debuggable=true 进行构建,则应用程序在 Android 模拟器中成功运行。我不知道这是什么问题。你能启发我吗?我还执行了 adb logcat,下面是 adb logcat 日志的输出。
release {
minifyEnabled true
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
signingConfig signingConfigs.release
}
Run Code Online (Sandbox Code Playgroud)
release {
debuggable true
minifyEnabled false
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
signingConfig signingConfigs.release
}
Run Code Online (Sandbox Code Playgroud)
07-10 16:32:02.720 1766 3624 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.notenavi/.SplashActivity bnds=[643,1396][849,1674] (has extras)} from uid 10022 on display 0
07-10 16:32:02.725 1456 1492 W audio_hw_generic: Not supplying enough data to HAL, expected position 2792355 , only wrote 2792160 …Run Code Online (Sandbox Code Playgroud)