反应本机Android应用一次又一次崩溃

发布于 2025-01-22 07:56:00 字数 354 浏览 2 评论 0 原文

我制作了一个React Native应用程序,并将其发布在Google Play商店上。但是当它发布时,它一次又一次地崩溃,徽标也有所更改。出版之前,它运行良好。请帮助我。

这是应用程序的链接:

I have made a react native app and published it on the Google Play Store. But when it was published it was crashing again and again and the logo was also changed a bit. Before the publishing, it worked fine. Please help me out.

Here's the link for the app:

https://play.google.com/store/apps/details?id=com.shubham_deswal.lblood_app

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

月亮邮递员 2025-01-29 07:56:00

我也面临着这种问题
以下命令对我有用

  1. run command command

    react-native捆绑包 - 平台android -dev false -entry-file index.js - bundle-undle-output android/app/src/src/src/src/src/index.android.bundle.bundle-assets-dest-dest-dest android/ App/src/main/res

  2. subtest.xml

    <应用
    android:name =“。mainapplication”
    android:icon =“@mipmap/ic_launcher”
    Android:usesclearTextTraffic =“ true” //添加此行带有true值。
    android:them =“@style/apptheme”>

  3. 权限

    在您的Mac上,选择Apple菜单>系统首选项,单击“安全性”&隐私,然后单击隐私。选择文件和文件夹。在应用下方选择tickbox,以允许其访问该位置的文件和文件夹。取消选择tickbox以关闭该应用程序的访问。

I have also faced this kind of issue
and the following command worked for me

  1. Run Following command

    react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res

  2. Manifest.xml

    <application
    android:name=".MainApplication"
    android:icon="@mipmap/ic_launcher"
    android:usesCleartextTraffic="true" // add this line with TRUE Value.
    android:theme="@style/AppTheme">

  3. Permission

    On your Mac, choose Apple menu > System Preferences, click Security & Privacy, then click Privacy. Select Files and Folders. Select the tickbox below an app to allow it to access files and folders in that location. Deselect the tickbox to turn off access for that app.

魄砕の薆 2025-01-29 07:56:00

如果您来自React Native方式...

尝试运行

react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/

它将更新您的应用程序的index.android.bundle,实际上是整个应用程序,由于某些原因,某些更改未反映在捆绑包中,并且运行上述行时它将更新index.android.bundle,您将在其中更新代码库。

另外,由于此功能,您需要生成一些额外的资源,因此您需要在应用程序运行后删除它们,因为下次会导致您重复资产问题。

if you are here from React Native way...

try running

react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/

it will update your app's index.android.bundle which is actually the whole app, due to some reason some changes are not getting reflected in the bundle and when you run the above line it will update the index.android.bundle and you will be having updated code base inside it.

Also some extra resources will get generated because of this, you need to remove them after the app runs because next time it will cause you duplicate asset issue.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文