Make sure you have an Android emulator running or a device connected and have
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
|
show 3 more comments
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
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
|
show 3 more comments
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
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
android react-native
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
|
show 3 more comments
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
|
show 3 more comments
6 Answers
6
active
oldest
votes
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.
This was my problem, thanks.
– Arildo Junior
Nov 21 '18 at 16:40
add a comment |
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
I had multiple versions of JDK so the first line of your answer solved it for me.
– drewg23
Jun 2 '18 at 22:22
add a comment |
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.
add a comment |
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
2
what about in windows?
– User1230321
May 29 '17 at 5:56
add a comment |
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.
add a comment |
- Open Android Studio
- Open anyproject or create an empty project
- Find Action (CMD + SHIFT + A) type: AVD Manager
- Hit enter to open AVD Manager
- click the little Pencil icon (Edit this AVD)
click on change (we need Android 6 (23) over there)
then select Android 6 (23) and click OK
Now click on PLAY button next to Edit (pencil), and keep the emulator running
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
This was my problem, thanks.
– Arildo Junior
Nov 21 '18 at 16:40
add a comment |
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.
This was my problem, thanks.
– Arildo Junior
Nov 21 '18 at 16:40
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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
I had multiple versions of JDK so the first line of your answer solved it for me.
– drewg23
Jun 2 '18 at 22:22
add a comment |
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
I had multiple versions of JDK so the first line of your answer solved it for me.
– drewg23
Jun 2 '18 at 22:22
add a comment |
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
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
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
add a comment |
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
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Jun 27 '16 at 21:14
curtispcurtisp
70831534
70831534
add a comment |
add a comment |
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
2
what about in windows?
– User1230321
May 29 '17 at 5:56
add a comment |
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
2
what about in windows?
– User1230321
May 29 '17 at 5:56
add a comment |
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
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
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
add a comment |
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
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Nov 8 '17 at 6:54
joseluismurilloriosjoseluismurillorios
313
313
add a comment |
add a comment |
- Open Android Studio
- Open anyproject or create an empty project
- Find Action (CMD + SHIFT + A) type: AVD Manager
- Hit enter to open AVD Manager
- click the little Pencil icon (Edit this AVD)
click on change (we need Android 6 (23) over there)
then select Android 6 (23) and click OK
Now click on PLAY button next to Edit (pencil), and keep the emulator running
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
add a comment |
- Open Android Studio
- Open anyproject or create an empty project
- Find Action (CMD + SHIFT + A) type: AVD Manager
- Hit enter to open AVD Manager
- click the little Pencil icon (Edit this AVD)
click on change (we need Android 6 (23) over there)
then select Android 6 (23) and click OK
Now click on PLAY button next to Edit (pencil), and keep the emulator running
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
add a comment |
- Open Android Studio
- Open anyproject or create an empty project
- Find Action (CMD + SHIFT + A) type: AVD Manager
- Hit enter to open AVD Manager
- click the little Pencil icon (Edit this AVD)
click on change (we need Android 6 (23) over there)
then select Android 6 (23) and click OK
Now click on PLAY button next to Edit (pencil), and keep the emulator running
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
- Open Android Studio
- Open anyproject or create an empty project
- Find Action (CMD + SHIFT + A) type: AVD Manager
- Hit enter to open AVD Manager
- click the little Pencil icon (Edit this AVD)
click on change (we need Android 6 (23) over there)
then select Android 6 (23) and click OK
Now click on PLAY button next to Edit (pencil), and keep the emulator running
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
answered May 5 '18 at 14:48
STEELSTEEL
2,71543459
2,71543459
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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