问题描述
我使用链接 https://reacednative.dev/docs/签名-APK-Android 我在我的Android设备上安装了它.当我打开它时,它会立即崩溃.
可以帮忙吗?
推荐答案
似乎可能有很多原因发生这种情况.但仍然分享我崩溃的内容.
我在我的释放apk中启用了proguard,我刚禁用它.
在[project-root]/android/app/build.gradle文件中,
我从
改变了def enableProguardInReleaseBuilds = true
def enableProguardInReleaseBuilds = false
其他推荐答案
跟踪的最佳方法将使用adb,打印adb log或通过USB将您的设备连接,在Android Studio中打开您的项目,运行App和Check Logs
参考 https://medium.com/@ Impaachu/React-Native-Android-Release - Build-Crash-On-Device-14F2C9ACF18
问题描述
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 crashes.
Can anyone please help?
推荐答案
It seems there might be many reasons for this happening. But still sharing what solved my crash.
I had enabled proguard in my release apk, I just disabled it.
In [project-root]/android/app/build.gradle file,
I changed from
def enableProguardInReleaseBuilds = true
to
def enableProguardInReleaseBuilds = false
其他推荐答案
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