-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unable to start the android hello world app on mac #13071
Comments
Hi, |
I installed the version mentioned on the Getting started Page:
|
In your android/app you have file called build.gradle. What is the targetSdkVersion, buildToolsVersion and compileSdkVersion there? |
|
Now I found out that the port 8081 was already in use. after killing the process and running
same error occurs with my samsung s6 connected. |
Ok I fixed the last error by deleting the virtual device and creating a new one. Summary for later visitors
|
This is happening to me as well, with the latest RN,
My
I followed the exact instructions on the React Native Getting Started guide using macOS High Sierra. The emulator is indeed SDK 23 with Android 6.0. I have the correct version of build tools installed as well. |
For anyone else having this problem, simply do this in your
Seems to work for me! |
Description
Hello,
I’m new to react native and have problems to setup the hello world app.
I followed the instruction on the „Getting Started“ page for installing android on mac.
First problems occur at „Starting the Android Virtual Device“ step.
$ android
outputsThen I created a new empty project in Android Studio and startet the AVD using the menu > tools > android > AVD Manager.
This window looks different to the one in the docs (see picture). There is no option named „Using Host GPU“.
Only thing I’ve discovered was the Option „Graphcs“. I turned that from „automatic“ to „Hardware GLES 2.0“.
Then I started the emulator using the play button and run
$ react-native run-android
.Now I get the error:
Hmf, no idea what the error means. Maybe its working with android studio.
Then I opened the folder
AwesomeProject/android
using File > Open... in Android Studioand hit the make Project button. Now I see the Error in the Console:
Then I plugged in my samsung s6 with usb debugging on and run
$ react-native run-android
again. Now it appears:So what am I doing wrong?
please help, thanks.
Reproduction
see steps above.
Solution
Please help me to find one.
Additional Information
The text was updated successfully, but these errors were encountered: