1

I have created my first project and try to run on my android device but it was an error like this.

FAILURE: Build failed with an exception.

*** What went wrong: A problem occurred configuring project ':app'.

The SDK directory '/home/ford/Android/sdk' does not exist.**

1 Answer 1

2
  • Go to the android/ directory of your react-native project
  • Create a file called local.properties with this line: sdk.dir = /Users/USERNAME/Library/Android/sdk or the android sdk directory where it is installed
  • Where USERNAME is your OSX username
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.