
Sometimes when we open a React Native app, this issue appears: "Unable to load script from assets 'index.android.bundle'".
I faced this issue when I installed a new React Native project to replace my old complete project. Without making any changes, I copied the entire content of the old project's AndroidManifest.xml file and pasted it into the new project's Androidmanifest.xml file.
After that, this same error started appearing: "Unable to load script from assets 'index.android.bundle'".
I tried several times but couldn’t fix it. Then somehow, while checking, I found that one line was missing, and that line was:android:usesCleartextTraffic="${usesCleartextTraffic}"
So, I added this line inside the <application> tag like this:
<application
android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher"
android:allowBackup="false"
android:theme="@style/SplashTheme"
android:usesCleartextTraffic="${usesCleartextTraffic}"
android:supportsRtl="true"
tools:replace="android:appComponentFactory"
android:appComponentFactory="androidx.core.app.CoreComponentFactory">
And my problem got solved, and now my app is running properly.
© 2025 WWW.WORLDTALKING.COM