Anand S
Anand S

Reputation: 820

FAILURE: Build failed with an exception in react native app

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.**

Upvotes: 1

Views: 1072

Answers (1)

Gokul Kulkarni
Gokul Kulkarni

Reputation: 2259

  • 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

Upvotes: 2

Related Questions