Home > Software design >  React-native run-android command failed after i unistalled former app on AVD simulator
React-native run-android command failed after i unistalled former app on AVD simulator

Time:10-16

I uninstalled the React Native app on my AVD simulator. I tried to run "react-native run-android" and I got this message in the console "No apps connected. Sending "reload" to all React Native apps failed. Make sure your app is running in the simulator or on a phone connected via USB"

I thought react-native run-android was supposed to re-install the app on the simulator. What can I do to have the app re-installed on the simulator?

Hi, Can anyone help me out?

CodePudding user response:

You just have to clear the cache

# Reset metro bundler cache : 
`npx react-native start --reset-cache`
    
# Remove Android assets cache : 
`cd android && ./gradlew clean`
    
# Relaunch metro server : 
`npx react-native run-android`

Or you can find you solution here.

  • Related