0

I did what ever explained in the below official link.

https://facebook.github.io/react-native/docs/running-on-device.html

The device is connected and said to trust my connected computer.

But when I run react-native run-android it says

A problem occurred configuring project ':app'.
> SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.

So, I googled a lot to get it done. Later a solution asked me to create local.properties file and paste sdk.dir = /home/abc/androidsdk/sdk. Then I am facing this issue.

A problem occurred configuring project ':app'.
> You have not accepted the license agreements of the following SDK components:
  [Android SDK Platform 23, Android SDK Build-Tools 23.0.1].
  Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
  Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html

The only thing I want is, running my react-native app in my lenova k4 note mobile.

sanjeev shetty
  • 438
  • 4
  • 17

1 Answers1

0

You are getting this issue because ANDROID_HOME variable is not set to PATH for setting path variable

for mac use this Setting ANDROID_HOME enviromental variable on Mac OS X

for windows Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.

Sunil Patel
  • 265
  • 3
  • 13