skip to Main Content

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.

React Native Doctor

I tried doing all the the configurations

2

Answers


  1. Have you added ANDROID_HOME to your path?

    Login or Signup to reply.
  2. 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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search