问题
I published my .apk file using the link https://reactnative.dev/docs/signed-apk-android and I installed it on my android device. When I open it, it immediately gets closed, it doesn't crash but doesn't open.
Can anyone please help?
回答1:
The best way to trace this will be using adb, either print adb log OR connect your device with release build via usb, open your project in Android studio, run app & check logs
For reference https://medium.com/@impaachu/react-native-android-release-build-crash-on-device-14f2c9eacf18
来源:https://stackoverflow.com/questions/60428486/react-native-app-keeps-closing-after-opening-it-without-crashing