React-Native Module HMRClinet is not a registered called module (call resolution)

I set my IP address and made sure it is right

but when I react to my own run-android

enter image description here

+12
android react-native
source share
7 answers

I had the same problem, I did not know what to do.

cd android ./gradlew clean 

after that

 react-native run-android 

solved my problem

+10
source share

I solved the problem:

1: Uninstall the application

2: Reload the package: react-native run-android

+3
source share

you need to stop the npm server. then press the following command in terminal.

 adb kill-server adb start-server 

than start npm server

+2
source share

The same error occurs when I turn off JS DEV mode and turn on Hot Reloading. I decided to disable it Hot Reloading. Hope this could help.

+1
source share

This issue occurs due to a development server error.

Follow some steps to resolve this issue.

Step 1:

 adb kill-server adb start-server 

then verify that your device / emulator is displayed on the command line or not.

 adb devices 

Step 2

Clean gradle compiler files, some files may be damaged.

 android/gradlew clean 

Step 3:

Uninstall the application from your device / emulator.

Step 4:

 react-native run-android 

Now the issue will be resolved :)

+1
source share

The answer to Santos is correct, but I could not use it, so for others who are faced with this problem, they are just as new as I am at the moment ... adb that Santos is restarting here is Android Debugging Bridge . This seems to be at the heart of the hot reboot / remote debugging built into React Native. Basically, he got confused and demanded a reboot.

An alternative solution The attempt to start adb failed for me, so I stopped the emulator, opened the Android virtual device manager (in Android Studio until Tools → Android → AVD Manager, and on the line for the specific phone that I simulated, I clicked the arrow down next to the edit icon (pencil) to the right and “Wipe Data" is selected. Then I restarted this device (the "Play" button to the left of the edit icon (pencil). Restart the application through react-native run-ios and everything was fine.

Learn more about Santosh. To do this, you need the Android SDK bin folder on your path or to run a command with the full path. It is located in the Android SDK folder under platform-tools . Remember to re-enable hot reboot after restart (if you use it).

0
source share

This can happen if hot reboot is enabled, but you are in working mode. To use hot reload, make sure __DEV__ set to true.

To check or change this, type adb shell input keyevent 82 in the console type adb shell input keyevent 82 , go to Dev Settings and make sure that JS Dev mode is set.

If you have JS remote debugging enabled, you can also see a line in the console that looks like this:

Running application "yourapp" with appParams: {"rootTag":1}. __DEV__ === false, development-level warning are OFF, performance optimizations are ON

If so, this may be the cause of your problem.

0
source share

All Articles