I am getting a weird error or maybe bug when running react native cli using yarn android
. I have checked everything and even re-installed my java sdk and all the android sdk’s. Also for some reason when i run npx reactnative-doctor
i see an error that my android studio is not downloaded.
I tried doing all the the configurations
2
Answers
Have you added ANDROID_HOME to your path?
Should be something like:
ANDROID_HOME = C:Users<username>AppDataLocalAndroidSdk
Also platform tools should be edited to path:
C:Users<username>AppDataLocalAndroidSdkplatform-tools
If the above paths are okay then try:
For windows
cd android
gradlew clean
For IOS
cd android
chmod +x gradlew
./gradlew clean