Search code examples
androidreact-nativeupdating

React-native is not updating changes in android


When i try to run on android the latest code is not updating. However, i can see the changes on IOS device. I tried reseting the cache react-native start --reset-cache, i reinstalled watchman.But nothing helps me. Could anyone figure it out?


Solution

  • finally i got the issue.I run the command react-native log-android and i got this error adb invocation failed

    so i link adb with exporting path.

    1. echo 'export ANDROID_HOME=/Users/$USER/Library/Android/sdk' >> ~/.bash_profile
    2. echo 'export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools' >> ~/.bash_profile

    3.source ~/.bash_profile

    Now code are reflected on android device too.