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.
<application
android:name=".MainApplication"
android:icon="@mipmap/ic_launcher"
android:usesCleartextTraffic="true" // add this line with TRUE Value.
android:theme="@style/AppTheme">
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.
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.
发布评论
评论(2)
我也面临着这种问题
以下命令对我有用
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
subtest.xml
&lt;应用
android:name =“。mainapplication”
android:icon =“@mipmap/ic_launcher”
Android:usesclearTextTraffic =“ true” //添加此行带有true值。
android:them =“@style/apptheme”&gt;
权限
在您的Mac上,选择Apple菜单&GT;系统首选项,单击“安全性”&amp;隐私,然后单击隐私。选择文件和文件夹。在应用下方选择tickbox,以允许其访问该位置的文件和文件夹。取消选择tickbox以关闭该应用程序的访问。
I have also faced this kind of issue
and the following command worked for me
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
Manifest.xml
<application
android:name=".MainApplication"
android:icon="@mipmap/ic_launcher"
android:usesCleartextTraffic="true" // add this line with TRUE Value.
android:theme="@style/AppTheme">
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.
如果您来自React Native方式...
尝试运行
它将更新您的应用程序的index.android.bundle,实际上是整个应用程序,由于某些原因,某些更改未反映在捆绑包中,并且运行上述行时它将更新index.android.bundle,您将在其中更新代码库。
另外,由于此功能,您需要生成一些额外的资源,因此您需要在应用程序运行后删除它们,因为下次会导致您重复资产问题。
if you are here from React Native way...
try running
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.