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?
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.
echo 'export ANDROID_HOME=/Users/$USER/Library/Android/sdk' >> ~/.bash_profile
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.