[英]React Native + Android: Release build “Unfortunately App, has stopped”
I am trying to prepare my app for release. 我正在尝试准备发布我的应用程序。
When I run the app from android studio it works fine. 当我从android studio运行该应用程序时,它运行正常。 But when I upload a beta build to the Play Store or I run
adb install android/app/app-release.apk
and try to run the app on my phone, it shows the Unfortunately App, has stopped
message. 但是,当我将Beta版本的版本上传到Play商店或运行
adb install android/app/app-release.apk
并尝试在手机上运行该应用程序时,它显示Unfortunately App, has stopped
消息。
How can I debug this? 我该如何调试? Is there a way to run the release build on my phone through android studio so that I can view the logs?
有没有一种方法可以通过android studio在手机上运行发布版本,以便查看日志?
I have never tried, but leave your device plugged in to USB. 我从未尝试过,但是将您的设备插入USB。 Run
adb logcat
in the terminal. 在终端中运行
adb logcat
。
There's probably additional settings to filter for your specific application package 可能还有其他设置可以针对您的特定应用程序包进行过滤
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.