I am new to React Native. When I run the project using react-native run-android
in terminal, Build failed with an exception
error will display.
I set android_home
(sdk location) correctly:
Error detail
FAILURE: Build failed with an exception.
* Where:
Build file '/home/sugeivan/react/AwesomeProject/android/app/build.gradle' line: 110
* What went wrong:
A problem occurred evaluating project ':app'.
SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.