React Native: reactnative

Source: Internet
Author: User

React Native: reactnative

Preface

I recently started to learn about React Native. After a long time, I kept kneeling on the Environment configuration and couldn't even run a basic helloworld (covering my face ). In fact, most of the time I did not dare to try it. Maybe it's because the time is too short, and you don't have the patience to read the documents, especially when you see a bunch of unfamiliar command lines, especially when you are not familiar with mac systems, the command line is even more messy.

In general, follow the document and step by step.

The first hurdle of this time: Unsupported major. minor version 52.0

The searched results basically mean that the version of the class file compiled by the project is higher than the jre version in the running environment, the class compiled by JDK of a higher version cannot be run on a jvm Virtual Machine of a lower version.

Search for React Native documentation: clearly describes what React Native currently needs? Android Studio2.0 or later, while Android Studio requires Java Development Kit [JDK] 1.8 or later. When we run the RN program, we directly use the command line method. Using the Java-version command, we found that the jdk version in my local environment is 1.7.

So we need to upgrade jdk first. What should I pay attention to during upgrade? How many jdk versions are switched under Windows ?.

Note: After the configuration is complete, close the cmd command line window and run the Java-version command again to check whether the modification is successful.

This second hurdle: SDK location... ANDROID_HOME

Because the program is run through the command line, if you want to run the android program, you need to configure the sdk environment variable. For more information, see?

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.