React Native App 打开后一直关闭而不会崩溃 [英] React Native App keeps closing after opening it without crashing

查看:31
本文介绍了React Native App 打开后一直关闭而不会崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用链接 https://reactnative.dev/docs/发布了我的 .apk 文件signed-apk-android 并将其安装在我的 android 设备上.当我打开它时,它立即崩溃.

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.

有人可以帮忙吗?

推荐答案

发生这种情况的原因似乎有很多.但仍然分享解决我崩溃的方法.

It seems there might be many reasons for this happening. But still sharing what solved my crash.

我在我的发行版 apk 中启用了 proguard,我只是禁用了它.

I had enabled proguard in my release apk, I just disabled it.

[project-root]/android/app/build.gradle文件中,

我变了

def enableProguardInReleaseBuilds = true

def enableProguardInReleaseBuilds = false

这篇关于React Native App 打开后一直关闭而不会崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆