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

React Native Android Run Problem with Stucking Old Version without Re-bundling Each Time on MacOS

$
0
0

I could not run the project on the Android without re-bundling each time I want to run my changes. Here is the re-bundling 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

After that I could not use react-native run-android because simply it could not find any emulator or physical device however I can find my emulators or devices via adb devices.

When I use react-native run-android it has some errors on the log.

Could not find adb

ADB Problem

It says, 'could not find any device or emulator' and could find the the ADB. However, both directory and devices are okay. I've checked them like 100 times. Therefore, I could not use the command!

I have to use Android Studio to run the project on Emulator or Physical Devices. It works but each time I have to change thing, I have to re-bundle whole android project. Reset the Bundler's cache and then re-run on Android Studio to see my changes. It just kills me :(

I need a solution for better development on Android with React Native. Additional information: I'm working on MacOS. I literally tried everything on the internet but could not find the solution for me.


Viewing all articles
Browse latest Browse all 29445

Trending Articles