Install Android studio and run React Native project (Basic article)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.