Make sure you have an Android emulator running or a device connected and have










19















I tried to run the react-native run-android through my React Project. After that, I got an error like the following.



 Starting JS server...
Building and installing the app on the device (cd android && gradlew.bat installDebug...

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
> Could not find com.android.support:appcompat-v7:23.0.1.
Searched in the following locations:
file:/C:/Users/DELL/.m2/repository/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.pom
file:/C:/Users/DELL/.m2/repository/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.jar
https://jcenter.bintray.com/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.pom
https://jcenter.bintray.com/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.jar
file:/F:/Android/react/AwesomeProject/node_modules/react-native/android/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.pom
file:/F:/Android/react/AwesomeProject/node_modules/react-native/android/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.jar
Required by:
AwesomeProject:app:unspecified
AwesomeProject:app:unspecified > com.facebook.react:react-native:0.27.2
> Could not find com.android.support:recyclerview-v7:23.0.1.
Searched in the following locations:
file:/C:/Users/DELL/.m2/repository/com/android/support/recyclerview-v7/23.0.1/recyclerview-v7-23.0.1.pom
file:/C:/Users/DELL/.m2/repository/com/android/support/recyclerview-v7/23.0.1/recyclerview-v7-23.0.1.jar
https://jcenter.bintray.com/com/android/support/recyclerview-v7/23.0.1/recyclerview-v7-23.0.1.pom
https://jcenter.bintray.com/com/android/support/recyclerview-v7/23.0.1/recyclerview-v7-23.0.1.jar
file:/F:/Android/react/AwesomeProject/node_modules/react-native/android/com/android/support/recyclerview-v7/23.0.1/recyclerview-v7-23.0.1.pom
file:/F:/Android/react/AwesomeProject/node_modules/react-native/android/com/android/support/recyclerview-v7/23.0.1/recyclerview-v7-23.0.1.jar
Required by:
AwesomeProject:app:unspecified > com.facebook.react:react-native:0.27.2
> Could not find com.android.support:support-v4:23.1.1.
Searched in the following locations:
file:/C:/Users/DELL/.m2/repository/com/android/support/support-v4/23.1.1/support-v4-23.1.1.pom
file:/C:/Users/DELL/.m2/repository/com/android/support/support-v4/23.1.1/support-v4-23.1.1.jar
https://jcenter.bintray.com/com/android/support/support-v4/23.1.1/support-v4-23.1.1.pom
https://jcenter.bintray.com/com/android/support/support-v4/23.1.1/support-v4-23.1.1.jar
file:/F:/Android/react/AwesomeProject/node_modules/react-native/android/com/android/support/support-v4/23.1.1/support-v4-23.1.1.pom
file:/F:/Android/react/AwesomeProject/node_modules/react-native/android/com/android/support/support-v4/23.1.1/support-v4-23.1.1.jar
Required by:
AwesomeProject:app:unspecified > com.facebook.react:react-native:0.27.2 > com.facebook.fresco:fresco:0.10.0 > com.facebook.fresco:drawee:0.10.0
AwesomeProject:app:unspecified > com.facebook.react:react-native:0.27.2 > com.facebook.fresco:fresco:0.10.0 > com.facebook.fresco:imagepipeline:0.10.0
AwesomeProject:app:unspecified > com.facebook.react:react-native:0.27.2 > com.facebook.fresco:fresco:0.10.0 > com.facebook.fresco:imagepipeline:0.10.0 > com.facebook.fresco:imagepipeline-base:0.10.0

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 17.502 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html


I installed Android SDK and set Android Home and Path Environmental Variable successfully. But I am still getting the same error.



I also installed Gennymotion on my pc for creating virtual android device.










share|improve this question
























  • Can you share more output from the command you ran?

    – agent_hunt
    Jun 18 '16 at 19:49











  • I updated the post with full output. Now please check and replay.

    – MUHSIN MOHAMED PC
    Jun 18 '16 at 19:56











  • Do you have the android support library properly setup ? developer.android.com/topic/libraries/support-library/…. What Build tools version ands support library versions are you using. You can also open the android folder of the react-native project from android studio. See if it complains about Build tools or version not installed.

    – agent_hunt
    Jun 18 '16 at 20:07











  • So what I need to next. Please tell me step by step.

    – MUHSIN MOHAMED PC
    Jun 18 '16 at 20:09











  • I installed almost every package in the Android SDK Manager. 23.0.3 | 23.0.2| 23.0.1 | 24| 19.1| etc

    – MUHSIN MOHAMED PC
    Jun 18 '16 at 20:11
















19















I tried to run the react-native run-android through my React Project. After that, I got an error like the following.



 Starting JS server...
Building and installing the app on the device (cd android && gradlew.bat installDebug...

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
> Could not find com.android.support:appcompat-v7:23.0.1.
Searched in the following locations:
file:/C:/Users/DELL/.m2/repository/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.pom
file:/C:/Users/DELL/.m2/repository/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.jar
https://jcenter.bintray.com/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.pom
https://jcenter.bintray.com/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.jar
file:/F:/Android/react/AwesomeProject/node_modules/react-native/android/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.pom
file:/F:/Android/react/AwesomeProject/node_modules/react-native/android/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.jar
Required by:
AwesomeProject:app:unspecified
AwesomeProject:app:unspecified > com.facebook.react:react-native:0.27.2
> Could not find com.android.support:recyclerview-v7:23.0.1.
Searched in the following locations:
file:/C:/Users/DELL/.m2/repository/com/android/support/recyclerview-v7/23.0.1/recyclerview-v7-23.0.1.pom
file:/C:/Users/DELL/.m2/repository/com/android/support/recyclerview-v7/23.0.1/recyclerview-v7-23.0.1.jar
https://jcenter.bintray.com/com/android/support/recyclerview-v7/23.0.1/recyclerview-v7-23.0.1.pom
https://jcenter.bintray.com/com/android/support/recyclerview-v7/23.0.1/recyclerview-v7-23.0.1.jar
file:/F:/Android/react/AwesomeProject/node_modules/react-native/android/com/android/support/recyclerview-v7/23.0.1/recyclerview-v7-23.0.1.pom
file:/F:/Android/react/AwesomeProject/node_modules/react-native/android/com/android/support/recyclerview-v7/23.0.1/recyclerview-v7-23.0.1.jar
Required by:
AwesomeProject:app:unspecified > com.facebook.react:react-native:0.27.2
> Could not find com.android.support:support-v4:23.1.1.
Searched in the following locations:
file:/C:/Users/DELL/.m2/repository/com/android/support/support-v4/23.1.1/support-v4-23.1.1.pom
file:/C:/Users/DELL/.m2/repository/com/android/support/support-v4/23.1.1/support-v4-23.1.1.jar
https://jcenter.bintray.com/com/android/support/support-v4/23.1.1/support-v4-23.1.1.pom
https://jcenter.bintray.com/com/android/support/support-v4/23.1.1/support-v4-23.1.1.jar
file:/F:/Android/react/AwesomeProject/node_modules/react-native/android/com/android/support/support-v4/23.1.1/support-v4-23.1.1.pom
file:/F:/Android/react/AwesomeProject/node_modules/react-native/android/com/android/support/support-v4/23.1.1/support-v4-23.1.1.jar
Required by:
AwesomeProject:app:unspecified > com.facebook.react:react-native:0.27.2 > com.facebook.fresco:fresco:0.10.0 > com.facebook.fresco:drawee:0.10.0
AwesomeProject:app:unspecified > com.facebook.react:react-native:0.27.2 > com.facebook.fresco:fresco:0.10.0 > com.facebook.fresco:imagepipeline:0.10.0
AwesomeProject:app:unspecified > com.facebook.react:react-native:0.27.2 > com.facebook.fresco:fresco:0.10.0 > com.facebook.fresco:imagepipeline:0.10.0 > com.facebook.fresco:imagepipeline-base:0.10.0

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 17.502 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html


I installed Android SDK and set Android Home and Path Environmental Variable successfully. But I am still getting the same error.



I also installed Gennymotion on my pc for creating virtual android device.










share|improve this question
























  • Can you share more output from the command you ran?

    – agent_hunt
    Jun 18 '16 at 19:49











  • I updated the post with full output. Now please check and replay.

    – MUHSIN MOHAMED PC
    Jun 18 '16 at 19:56











  • Do you have the android support library properly setup ? developer.android.com/topic/libraries/support-library/…. What Build tools version ands support library versions are you using. You can also open the android folder of the react-native project from android studio. See if it complains about Build tools or version not installed.

    – agent_hunt
    Jun 18 '16 at 20:07











  • So what I need to next. Please tell me step by step.

    – MUHSIN MOHAMED PC
    Jun 18 '16 at 20:09











  • I installed almost every package in the Android SDK Manager. 23.0.3 | 23.0.2| 23.0.1 | 24| 19.1| etc

    – MUHSIN MOHAMED PC
    Jun 18 '16 at 20:11














19












19








19


1






I tried to run the react-native run-android through my React Project. After that, I got an error like the following.



 Starting JS server...
Building and installing the app on the device (cd android && gradlew.bat installDebug...

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
> Could not find com.android.support:appcompat-v7:23.0.1.
Searched in the following locations:
file:/C:/Users/DELL/.m2/repository/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.pom
file:/C:/Users/DELL/.m2/repository/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.jar
https://jcenter.bintray.com/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.pom
https://jcenter.bintray.com/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.jar
file:/F:/Android/react/AwesomeProject/node_modules/react-native/android/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.pom
file:/F:/Android/react/AwesomeProject/node_modules/react-native/android/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.jar
Required by:
AwesomeProject:app:unspecified
AwesomeProject:app:unspecified > com.facebook.react:react-native:0.27.2
> Could not find com.android.support:recyclerview-v7:23.0.1.
Searched in the following locations:
file:/C:/Users/DELL/.m2/repository/com/android/support/recyclerview-v7/23.0.1/recyclerview-v7-23.0.1.pom
file:/C:/Users/DELL/.m2/repository/com/android/support/recyclerview-v7/23.0.1/recyclerview-v7-23.0.1.jar
https://jcenter.bintray.com/com/android/support/recyclerview-v7/23.0.1/recyclerview-v7-23.0.1.pom
https://jcenter.bintray.com/com/android/support/recyclerview-v7/23.0.1/recyclerview-v7-23.0.1.jar
file:/F:/Android/react/AwesomeProject/node_modules/react-native/android/com/android/support/recyclerview-v7/23.0.1/recyclerview-v7-23.0.1.pom
file:/F:/Android/react/AwesomeProject/node_modules/react-native/android/com/android/support/recyclerview-v7/23.0.1/recyclerview-v7-23.0.1.jar
Required by:
AwesomeProject:app:unspecified > com.facebook.react:react-native:0.27.2
> Could not find com.android.support:support-v4:23.1.1.
Searched in the following locations:
file:/C:/Users/DELL/.m2/repository/com/android/support/support-v4/23.1.1/support-v4-23.1.1.pom
file:/C:/Users/DELL/.m2/repository/com/android/support/support-v4/23.1.1/support-v4-23.1.1.jar
https://jcenter.bintray.com/com/android/support/support-v4/23.1.1/support-v4-23.1.1.pom
https://jcenter.bintray.com/com/android/support/support-v4/23.1.1/support-v4-23.1.1.jar
file:/F:/Android/react/AwesomeProject/node_modules/react-native/android/com/android/support/support-v4/23.1.1/support-v4-23.1.1.pom
file:/F:/Android/react/AwesomeProject/node_modules/react-native/android/com/android/support/support-v4/23.1.1/support-v4-23.1.1.jar
Required by:
AwesomeProject:app:unspecified > com.facebook.react:react-native:0.27.2 > com.facebook.fresco:fresco:0.10.0 > com.facebook.fresco:drawee:0.10.0
AwesomeProject:app:unspecified > com.facebook.react:react-native:0.27.2 > com.facebook.fresco:fresco:0.10.0 > com.facebook.fresco:imagepipeline:0.10.0
AwesomeProject:app:unspecified > com.facebook.react:react-native:0.27.2 > com.facebook.fresco:fresco:0.10.0 > com.facebook.fresco:imagepipeline:0.10.0 > com.facebook.fresco:imagepipeline-base:0.10.0

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 17.502 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html


I installed Android SDK and set Android Home and Path Environmental Variable successfully. But I am still getting the same error.



I also installed Gennymotion on my pc for creating virtual android device.










share|improve this question
















I tried to run the react-native run-android through my React Project. After that, I got an error like the following.



 Starting JS server...
Building and installing the app on the device (cd android && gradlew.bat installDebug...

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
> Could not find com.android.support:appcompat-v7:23.0.1.
Searched in the following locations:
file:/C:/Users/DELL/.m2/repository/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.pom
file:/C:/Users/DELL/.m2/repository/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.jar
https://jcenter.bintray.com/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.pom
https://jcenter.bintray.com/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.jar
file:/F:/Android/react/AwesomeProject/node_modules/react-native/android/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.pom
file:/F:/Android/react/AwesomeProject/node_modules/react-native/android/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.jar
Required by:
AwesomeProject:app:unspecified
AwesomeProject:app:unspecified > com.facebook.react:react-native:0.27.2
> Could not find com.android.support:recyclerview-v7:23.0.1.
Searched in the following locations:
file:/C:/Users/DELL/.m2/repository/com/android/support/recyclerview-v7/23.0.1/recyclerview-v7-23.0.1.pom
file:/C:/Users/DELL/.m2/repository/com/android/support/recyclerview-v7/23.0.1/recyclerview-v7-23.0.1.jar
https://jcenter.bintray.com/com/android/support/recyclerview-v7/23.0.1/recyclerview-v7-23.0.1.pom
https://jcenter.bintray.com/com/android/support/recyclerview-v7/23.0.1/recyclerview-v7-23.0.1.jar
file:/F:/Android/react/AwesomeProject/node_modules/react-native/android/com/android/support/recyclerview-v7/23.0.1/recyclerview-v7-23.0.1.pom
file:/F:/Android/react/AwesomeProject/node_modules/react-native/android/com/android/support/recyclerview-v7/23.0.1/recyclerview-v7-23.0.1.jar
Required by:
AwesomeProject:app:unspecified > com.facebook.react:react-native:0.27.2
> Could not find com.android.support:support-v4:23.1.1.
Searched in the following locations:
file:/C:/Users/DELL/.m2/repository/com/android/support/support-v4/23.1.1/support-v4-23.1.1.pom
file:/C:/Users/DELL/.m2/repository/com/android/support/support-v4/23.1.1/support-v4-23.1.1.jar
https://jcenter.bintray.com/com/android/support/support-v4/23.1.1/support-v4-23.1.1.pom
https://jcenter.bintray.com/com/android/support/support-v4/23.1.1/support-v4-23.1.1.jar
file:/F:/Android/react/AwesomeProject/node_modules/react-native/android/com/android/support/support-v4/23.1.1/support-v4-23.1.1.pom
file:/F:/Android/react/AwesomeProject/node_modules/react-native/android/com/android/support/support-v4/23.1.1/support-v4-23.1.1.jar
Required by:
AwesomeProject:app:unspecified > com.facebook.react:react-native:0.27.2 > com.facebook.fresco:fresco:0.10.0 > com.facebook.fresco:drawee:0.10.0
AwesomeProject:app:unspecified > com.facebook.react:react-native:0.27.2 > com.facebook.fresco:fresco:0.10.0 > com.facebook.fresco:imagepipeline:0.10.0
AwesomeProject:app:unspecified > com.facebook.react:react-native:0.27.2 > com.facebook.fresco:fresco:0.10.0 > com.facebook.fresco:imagepipeline:0.10.0 > com.facebook.fresco:imagepipeline-base:0.10.0

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 17.502 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html


I installed Android SDK and set Android Home and Path Environmental Variable successfully. But I am still getting the same error.



I also installed Gennymotion on my pc for creating virtual android device.







android react-native






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 18 '16 at 19:55







MUHSIN MOHAMED PC

















asked Jun 18 '16 at 19:15









MUHSIN MOHAMED PCMUHSIN MOHAMED PC

103118




103118












  • Can you share more output from the command you ran?

    – agent_hunt
    Jun 18 '16 at 19:49











  • I updated the post with full output. Now please check and replay.

    – MUHSIN MOHAMED PC
    Jun 18 '16 at 19:56











  • Do you have the android support library properly setup ? developer.android.com/topic/libraries/support-library/…. What Build tools version ands support library versions are you using. You can also open the android folder of the react-native project from android studio. See if it complains about Build tools or version not installed.

    – agent_hunt
    Jun 18 '16 at 20:07











  • So what I need to next. Please tell me step by step.

    – MUHSIN MOHAMED PC
    Jun 18 '16 at 20:09











  • I installed almost every package in the Android SDK Manager. 23.0.3 | 23.0.2| 23.0.1 | 24| 19.1| etc

    – MUHSIN MOHAMED PC
    Jun 18 '16 at 20:11


















  • Can you share more output from the command you ran?

    – agent_hunt
    Jun 18 '16 at 19:49











  • I updated the post with full output. Now please check and replay.

    – MUHSIN MOHAMED PC
    Jun 18 '16 at 19:56











  • Do you have the android support library properly setup ? developer.android.com/topic/libraries/support-library/…. What Build tools version ands support library versions are you using. You can also open the android folder of the react-native project from android studio. See if it complains about Build tools or version not installed.

    – agent_hunt
    Jun 18 '16 at 20:07











  • So what I need to next. Please tell me step by step.

    – MUHSIN MOHAMED PC
    Jun 18 '16 at 20:09











  • I installed almost every package in the Android SDK Manager. 23.0.3 | 23.0.2| 23.0.1 | 24| 19.1| etc

    – MUHSIN MOHAMED PC
    Jun 18 '16 at 20:11

















Can you share more output from the command you ran?

– agent_hunt
Jun 18 '16 at 19:49





Can you share more output from the command you ran?

– agent_hunt
Jun 18 '16 at 19:49













I updated the post with full output. Now please check and replay.

– MUHSIN MOHAMED PC
Jun 18 '16 at 19:56





I updated the post with full output. Now please check and replay.

– MUHSIN MOHAMED PC
Jun 18 '16 at 19:56













Do you have the android support library properly setup ? developer.android.com/topic/libraries/support-library/…. What Build tools version ands support library versions are you using. You can also open the android folder of the react-native project from android studio. See if it complains about Build tools or version not installed.

– agent_hunt
Jun 18 '16 at 20:07





Do you have the android support library properly setup ? developer.android.com/topic/libraries/support-library/…. What Build tools version ands support library versions are you using. You can also open the android folder of the react-native project from android studio. See if it complains about Build tools or version not installed.

– agent_hunt
Jun 18 '16 at 20:07













So what I need to next. Please tell me step by step.

– MUHSIN MOHAMED PC
Jun 18 '16 at 20:09





So what I need to next. Please tell me step by step.

– MUHSIN MOHAMED PC
Jun 18 '16 at 20:09













I installed almost every package in the Android SDK Manager. 23.0.3 | 23.0.2| 23.0.1 | 24| 19.1| etc

– MUHSIN MOHAMED PC
Jun 18 '16 at 20:11






I installed almost every package in the Android SDK Manager. 23.0.3 | 23.0.2| 23.0.1 | 24| 19.1| etc

– MUHSIN MOHAMED PC
Jun 18 '16 at 20:11













6 Answers
6






active

oldest

votes


















9














You might check the permissions on Android/Gradlew
They should be 755 not 644.



Run chmod 755 android/gradlew inside your app root folder.



Then run react-native run-android.



And it should work again.






share|improve this answer

























  • This was my problem, thanks.

    – Arildo Junior
    Nov 21 '18 at 16:40


















2














Fixed the error with the following in .bash_profile



export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home
export PATH=$PATH:$JAVA_HOME/bin
export ANDROID_HOME=/Users/saif-ams/MyFiles/applications/androidsdk
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools





share|improve this answer























  • I had multiple versions of JDK so the first line of your answer solved it for me.

    – drewg23
    Jun 2 '18 at 22:22


















1














In this React Native AwesomeProject tutorial the author notes that the project's Android Studio build version may have to be updated in the project's build.gradle file.



If you are using the newest version of Android Studio you may have to do that too if your tutorial is a bit older.



Find your project's build.gradle file which should be located in AwesomeProjectandroidapp folder.



In build.gradle file find buildToolsVersion "23.0.1" and change to buildToolsVersion "23.0.3"



Note that there may be another "23.0.1" string in your file but that is for the Android support version and should stay unchanged.






share|improve this answer






























    1














    I just had this problem as well. It was a permission problem in the project folder. I solved this with:



    sudo chown -R nomeDoUsuario AwesomeProject





    share|improve this answer




















    • 2





      what about in windows?

      – User1230321
      May 29 '17 at 5:56


















    0














    I just revoked permissions and re-accepted them again. It sounds silly, I know, but I also tried other options first, until I saw that Cordova did not recognize my device either. I just unplugged my cell phone to go from school to my home. I hope that for some it can be solved that easily.






    share|improve this answer






























      0














      1. Open Android Studio

      2. Open anyproject or create an empty project

      3. Find Action (CMD + SHIFT + A) type: AVD Manager

      4. Hit enter to open AVD Manager

      5. click the little Pencil icon (Edit this AVD)

      6. click on change (we need Android 6 (23) over there)
        enter image description here


      7. then select Android 6 (23) and click OK
        enter image description here


      8. Now click on PLAY button next to Edit (pencil), and keep the emulator running


      9. Now open Terminal, cd TO_YOUR_PROJECT
        and then type: react-native run-android


      ref: https://facebook.github.io/react-native/docs/getting-started.html






      share|improve this answer






















        Your Answer






        StackExchange.ifUsing("editor", function ()
        StackExchange.using("externalEditor", function ()
        StackExchange.using("snippets", function ()
        StackExchange.snippets.init();
        );
        );
        , "code-snippets");

        StackExchange.ready(function()
        var channelOptions =
        tags: "".split(" "),
        id: "1"
        ;
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function()
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled)
        StackExchange.using("snippets", function()
        createEditor();
        );

        else
        createEditor();

        );

        function createEditor()
        StackExchange.prepareEditor(
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        imageUploader:
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        ,
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        );



        );













        draft saved

        draft discarded


















        StackExchange.ready(
        function ()
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f37900737%2fmake-sure-you-have-an-android-emulator-running-or-a-device-connected-and-have%23new-answer', 'question_page');

        );

        Post as a guest















        Required, but never shown

























        6 Answers
        6






        active

        oldest

        votes








        6 Answers
        6






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        9














        You might check the permissions on Android/Gradlew
        They should be 755 not 644.



        Run chmod 755 android/gradlew inside your app root folder.



        Then run react-native run-android.



        And it should work again.






        share|improve this answer

























        • This was my problem, thanks.

          – Arildo Junior
          Nov 21 '18 at 16:40















        9














        You might check the permissions on Android/Gradlew
        They should be 755 not 644.



        Run chmod 755 android/gradlew inside your app root folder.



        Then run react-native run-android.



        And it should work again.






        share|improve this answer

























        • This was my problem, thanks.

          – Arildo Junior
          Nov 21 '18 at 16:40













        9












        9








        9







        You might check the permissions on Android/Gradlew
        They should be 755 not 644.



        Run chmod 755 android/gradlew inside your app root folder.



        Then run react-native run-android.



        And it should work again.






        share|improve this answer















        You might check the permissions on Android/Gradlew
        They should be 755 not 644.



        Run chmod 755 android/gradlew inside your app root folder.



        Then run react-native run-android.



        And it should work again.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 16 '18 at 2:32









        Unheilig

        12.1k165387




        12.1k165387










        answered Nov 16 '18 at 2:12









        Royal.ORoyal.O

        146110




        146110












        • This was my problem, thanks.

          – Arildo Junior
          Nov 21 '18 at 16:40

















        • This was my problem, thanks.

          – Arildo Junior
          Nov 21 '18 at 16:40
















        This was my problem, thanks.

        – Arildo Junior
        Nov 21 '18 at 16:40





        This was my problem, thanks.

        – Arildo Junior
        Nov 21 '18 at 16:40













        2














        Fixed the error with the following in .bash_profile



        export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home
        export PATH=$PATH:$JAVA_HOME/bin
        export ANDROID_HOME=/Users/saif-ams/MyFiles/applications/androidsdk
        export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools





        share|improve this answer























        • I had multiple versions of JDK so the first line of your answer solved it for me.

          – drewg23
          Jun 2 '18 at 22:22















        2














        Fixed the error with the following in .bash_profile



        export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home
        export PATH=$PATH:$JAVA_HOME/bin
        export ANDROID_HOME=/Users/saif-ams/MyFiles/applications/androidsdk
        export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools





        share|improve this answer























        • I had multiple versions of JDK so the first line of your answer solved it for me.

          – drewg23
          Jun 2 '18 at 22:22













        2












        2








        2







        Fixed the error with the following in .bash_profile



        export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home
        export PATH=$PATH:$JAVA_HOME/bin
        export ANDROID_HOME=/Users/saif-ams/MyFiles/applications/androidsdk
        export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools





        share|improve this answer













        Fixed the error with the following in .bash_profile



        export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home
        export PATH=$PATH:$JAVA_HOME/bin
        export ANDROID_HOME=/Users/saif-ams/MyFiles/applications/androidsdk
        export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 19 '18 at 15:17









        Saif KamaalSaif Kamaal

        877




        877












        • I had multiple versions of JDK so the first line of your answer solved it for me.

          – drewg23
          Jun 2 '18 at 22:22

















        • I had multiple versions of JDK so the first line of your answer solved it for me.

          – drewg23
          Jun 2 '18 at 22:22
















        I had multiple versions of JDK so the first line of your answer solved it for me.

        – drewg23
        Jun 2 '18 at 22:22





        I had multiple versions of JDK so the first line of your answer solved it for me.

        – drewg23
        Jun 2 '18 at 22:22











        1














        In this React Native AwesomeProject tutorial the author notes that the project's Android Studio build version may have to be updated in the project's build.gradle file.



        If you are using the newest version of Android Studio you may have to do that too if your tutorial is a bit older.



        Find your project's build.gradle file which should be located in AwesomeProjectandroidapp folder.



        In build.gradle file find buildToolsVersion "23.0.1" and change to buildToolsVersion "23.0.3"



        Note that there may be another "23.0.1" string in your file but that is for the Android support version and should stay unchanged.






        share|improve this answer



























          1














          In this React Native AwesomeProject tutorial the author notes that the project's Android Studio build version may have to be updated in the project's build.gradle file.



          If you are using the newest version of Android Studio you may have to do that too if your tutorial is a bit older.



          Find your project's build.gradle file which should be located in AwesomeProjectandroidapp folder.



          In build.gradle file find buildToolsVersion "23.0.1" and change to buildToolsVersion "23.0.3"



          Note that there may be another "23.0.1" string in your file but that is for the Android support version and should stay unchanged.






          share|improve this answer

























            1












            1








            1







            In this React Native AwesomeProject tutorial the author notes that the project's Android Studio build version may have to be updated in the project's build.gradle file.



            If you are using the newest version of Android Studio you may have to do that too if your tutorial is a bit older.



            Find your project's build.gradle file which should be located in AwesomeProjectandroidapp folder.



            In build.gradle file find buildToolsVersion "23.0.1" and change to buildToolsVersion "23.0.3"



            Note that there may be another "23.0.1" string in your file but that is for the Android support version and should stay unchanged.






            share|improve this answer













            In this React Native AwesomeProject tutorial the author notes that the project's Android Studio build version may have to be updated in the project's build.gradle file.



            If you are using the newest version of Android Studio you may have to do that too if your tutorial is a bit older.



            Find your project's build.gradle file which should be located in AwesomeProjectandroidapp folder.



            In build.gradle file find buildToolsVersion "23.0.1" and change to buildToolsVersion "23.0.3"



            Note that there may be another "23.0.1" string in your file but that is for the Android support version and should stay unchanged.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jun 27 '16 at 21:14









            curtispcurtisp

            70831534




            70831534





















                1














                I just had this problem as well. It was a permission problem in the project folder. I solved this with:



                sudo chown -R nomeDoUsuario AwesomeProject





                share|improve this answer




















                • 2





                  what about in windows?

                  – User1230321
                  May 29 '17 at 5:56















                1














                I just had this problem as well. It was a permission problem in the project folder. I solved this with:



                sudo chown -R nomeDoUsuario AwesomeProject





                share|improve this answer




















                • 2





                  what about in windows?

                  – User1230321
                  May 29 '17 at 5:56













                1












                1








                1







                I just had this problem as well. It was a permission problem in the project folder. I solved this with:



                sudo chown -R nomeDoUsuario AwesomeProject





                share|improve this answer















                I just had this problem as well. It was a permission problem in the project folder. I solved this with:



                sudo chown -R nomeDoUsuario AwesomeProject






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Jan 18 at 15:40









                Lukas

                2,52843155




                2,52843155










                answered Mar 23 '17 at 20:38









                abacaxivermelhoabacaxivermelho

                474




                474







                • 2





                  what about in windows?

                  – User1230321
                  May 29 '17 at 5:56












                • 2





                  what about in windows?

                  – User1230321
                  May 29 '17 at 5:56







                2




                2





                what about in windows?

                – User1230321
                May 29 '17 at 5:56





                what about in windows?

                – User1230321
                May 29 '17 at 5:56











                0














                I just revoked permissions and re-accepted them again. It sounds silly, I know, but I also tried other options first, until I saw that Cordova did not recognize my device either. I just unplugged my cell phone to go from school to my home. I hope that for some it can be solved that easily.






                share|improve this answer



























                  0














                  I just revoked permissions and re-accepted them again. It sounds silly, I know, but I also tried other options first, until I saw that Cordova did not recognize my device either. I just unplugged my cell phone to go from school to my home. I hope that for some it can be solved that easily.






                  share|improve this answer

























                    0












                    0








                    0







                    I just revoked permissions and re-accepted them again. It sounds silly, I know, but I also tried other options first, until I saw that Cordova did not recognize my device either. I just unplugged my cell phone to go from school to my home. I hope that for some it can be solved that easily.






                    share|improve this answer













                    I just revoked permissions and re-accepted them again. It sounds silly, I know, but I also tried other options first, until I saw that Cordova did not recognize my device either. I just unplugged my cell phone to go from school to my home. I hope that for some it can be solved that easily.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Nov 8 '17 at 6:54









                    joseluismurilloriosjoseluismurillorios

                    313




                    313





















                        0














                        1. Open Android Studio

                        2. Open anyproject or create an empty project

                        3. Find Action (CMD + SHIFT + A) type: AVD Manager

                        4. Hit enter to open AVD Manager

                        5. click the little Pencil icon (Edit this AVD)

                        6. click on change (we need Android 6 (23) over there)
                          enter image description here


                        7. then select Android 6 (23) and click OK
                          enter image description here


                        8. Now click on PLAY button next to Edit (pencil), and keep the emulator running


                        9. Now open Terminal, cd TO_YOUR_PROJECT
                          and then type: react-native run-android


                        ref: https://facebook.github.io/react-native/docs/getting-started.html






                        share|improve this answer



























                          0














                          1. Open Android Studio

                          2. Open anyproject or create an empty project

                          3. Find Action (CMD + SHIFT + A) type: AVD Manager

                          4. Hit enter to open AVD Manager

                          5. click the little Pencil icon (Edit this AVD)

                          6. click on change (we need Android 6 (23) over there)
                            enter image description here


                          7. then select Android 6 (23) and click OK
                            enter image description here


                          8. Now click on PLAY button next to Edit (pencil), and keep the emulator running


                          9. Now open Terminal, cd TO_YOUR_PROJECT
                            and then type: react-native run-android


                          ref: https://facebook.github.io/react-native/docs/getting-started.html






                          share|improve this answer

























                            0












                            0








                            0







                            1. Open Android Studio

                            2. Open anyproject or create an empty project

                            3. Find Action (CMD + SHIFT + A) type: AVD Manager

                            4. Hit enter to open AVD Manager

                            5. click the little Pencil icon (Edit this AVD)

                            6. click on change (we need Android 6 (23) over there)
                              enter image description here


                            7. then select Android 6 (23) and click OK
                              enter image description here


                            8. Now click on PLAY button next to Edit (pencil), and keep the emulator running


                            9. Now open Terminal, cd TO_YOUR_PROJECT
                              and then type: react-native run-android


                            ref: https://facebook.github.io/react-native/docs/getting-started.html






                            share|improve this answer













                            1. Open Android Studio

                            2. Open anyproject or create an empty project

                            3. Find Action (CMD + SHIFT + A) type: AVD Manager

                            4. Hit enter to open AVD Manager

                            5. click the little Pencil icon (Edit this AVD)

                            6. click on change (we need Android 6 (23) over there)
                              enter image description here


                            7. then select Android 6 (23) and click OK
                              enter image description here


                            8. Now click on PLAY button next to Edit (pencil), and keep the emulator running


                            9. Now open Terminal, cd TO_YOUR_PROJECT
                              and then type: react-native run-android


                            ref: https://facebook.github.io/react-native/docs/getting-started.html







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered May 5 '18 at 14:48









                            STEELSTEEL

                            2,71543459




                            2,71543459



























                                draft saved

                                draft discarded
















































                                Thanks for contributing an answer to Stack Overflow!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid


                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.

                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function ()
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f37900737%2fmake-sure-you-have-an-android-emulator-running-or-a-device-connected-and-have%23new-answer', 'question_page');

                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                Top Tejano songwriter Luis Silva dead of heart attack at 64

                                政党

                                天津地下鉄3号線