Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 28476

Unable to run app in debug mode in React Native

$
0
0

My react-native debug app is throwing the below error the moment I open it,

enter image description here

On clicking reload, it throws me below error screen,

enter image description here

I went through this and made the changes in my android manifest file(android:usesCleartextTraffic="true"), but still the same issue is happening .

It works perfectly fine while running react-native run-android and connecting my physical device but in debug APK it doesn't and throws above error.

I made the debug APK using below steps, I manually created the bundle using the below command, RN version- 0.60.0

react-native bundle --dev false --platform android --entry-file index.js --bundle-output ./android/app/build/intermediates/assets/debug/index.android.bundle --assets-dest ./android/app/build/intermediates/res/merged/debug

and then

cd android && ./gradlew assembleDebug

Please help me out here. Thanks a lot!


Viewing all articles
Browse latest Browse all 28476

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>