android_home Environment Variables
Make sure that the ANDROID_HOME
environment variables correctly point to the path of the Android SDK that you installed.
Open---- 控制面板
系统和安全
系统
高级系统设置
高级
环境变量
新建
The specific path may be inconsistent, please confirm it yourself.
You need to close the existing Command prompt window and reopen it so that the new environment variable will take effect.
Test installation
React-native Init AWESOMEPROJECTCD awesomeprojectreact-native run-android
Tip: You can use --version
parameters to create a specific version of the project. For example react-native init MyApp --version 0.39.2
. Note that the version number must be exactly two decimal points.
- Run under terminal
adb logcat *:S ReactNative:V ReactNativeJS:V
to see the logs for your app.
Next: Install Android Studio and run React native project (jump pit)
Install Android studio and run React Native project (Basic article)