0
votes

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

SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at '/home/ranaji/myapp/android/local.properties'.

need permanent solution. pls ans me if anyone know

thanks for help

1
Have you android studio??Vishal Dhanotiya

1 Answers

0
votes

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