Repository navigation
Getting Started guide for windows/android is not working. #13900
Description
Activity
Have you tried following the very latest version of the guide at http://facebook.github.io/react-native/releases/next/docs/getting-started.html ? I've recently gone through all the steps on Windows and did not run into the issue you presented. It sounds like you're having trouble connecting to the Android device.
@hramos Hi Hector! nice to see you in here, I have many apps running on Parse Server ;)
Yes I did follow the very latest version of the guide and it didn't work. I even created a fresh VM on windows 7 and it didn't work either.
By the way, the screenshots in the windows guide are from iOS, that doesn't make sense as well.
Hector, you should give it a try again on a windows machine, or someone on your team.
I dedicated most of the afternoon today to look into this. After completely uninstalling Android Studio and the Android SDK as well as all AVDs from my machine, I went back through the current instructions, step by step, and I was able to run the starter RN app on Windows on an Android emulator.
I was unable to reproduce the issue brought up here. The logs you posted indicate that you may be missing the 23.0.1 SDK build tools. Can you double-check and make sure you did not miss a single step?
I've updated the instructions to use Windows screenshots when applicable.
Gracias Hector, I'll make a video
Are you sure you have the 23.0.1 SDK build tools? The error indicates you're missing them. Did you install the JDK as well?
Yes, many times. Take a look at this image:
http://prntscr.com/f8idfpThat image does not show the 23.0.1 SDK build tools as being installed. That option is under the "SDK Tools" tab.
Hector, it is also there, check this other image: http://prntscr.com/f8j3vc
Same here
And "adb devices" shows me my emulator, of course.Like I said above, I just went through all the steps on a clean machine and had no issues. If anyone can pinpoint if there's a step that is missing, or an assumption that the guide makes about the user's machine, that could help.
Ok, I found my problem.
I was running it from the conemu terminal and I was getting error messages with black text on a black background.
For me, the issue was a bad JAVA_HOME env var.Hope that helps.
JAVA_HOME env var missing has been causing a lot of issues. As an extra precaution I also put %JAVA_HOME% in my PATH env var as well after creating the appropriate JAVA_HOME var. React worked without issues after adding that. You will also need to restart your CMD or other CLI you are using.
- locked as resolved and limited conversation to collaborators
on Jun 7, 2018 - addedResolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
on Jul 18, 2018
Description
Getting Started guide for windows/android is not working.
I followed the guide exactly step by step many times. I even created a VM container with a fresh installed windows 7 and 10 version, and it didn't work in both cases and neither in my day-by-day windows 7 machine.
You need to fix this guide: https://facebook.github.io/react-native/docs/getting-started.html
Also, the screenshots are out of date for Android Studio.
What I ended up doing was to install Expo XDE and Genymotion and add ADB into my system path config variables.
But I can't use "react-native run-android", I have to command via Expo XDE, what sucks a little bit.
The Android Studio installation is NOT working as described in the Getting Started guide.
ERROR:
Running dex in-process requires build tools 23.0.2.
For faster builds update this project to use the latest build tools.
:app:transformClassesWithDexForDebug FAILED
FAILURE: Build failed with an exception.