![]() ![]()
It also need to set the JAVA_HOME and ANDROID_HOME, I use MacOS, so that’s need to set in the ~/.bash_profile file as below: export JAVA_HOME=$(/usr/libexec/java_home)Įxport ANDROID_HOME=/Volumes/SourceCodes/androidSDK/android-sdk-macosxģ. I got the error that missed the Java SDK, and I need to go to Java website for download it.Ģ.But after installed the Java SDK, I got another error. I have developed the android app with flutter before, so I also have installed the android SDK, and I suppose that will be smooth in RN right now, but when I execute below command to try to run the android: react-native run-android As a Mac user, you should already have Ruby installed on your system.I am trying to use React Native these days, it works fine in iOS simulator, but when I try to run the app in android emulator, I encountered some problems! To select the simulator, click on the tiny arrow down icon, and you’ll get a prompt asking you to type your system password.ĭownloading can take a while, even on fast Internet, as the Xcode servers aren’t super fast. Create react native app run android emulator mac install#To install a simulator, go to Xcode > Preferences > Components: To simulate your native apps, Xcode offers various simulators for different generations of devices (phones, tablets). Now inside Preferences, go to the “Locations” panel and install the tools by selecting the most recent version in the Command Line Tools dropdown. To install the Xcode Command Line Tools, open Xcode, and choose “Preferences” from the Xcode menu. When it’s done installing, open Xcode and you’ll get a message like this:Ĭlick install. If you don’t have Xcode already, go get it from the App Store. ![]() Generally, you want to use the newest version of Xcode. If you already have Xcode, make sure you have version 11.3 or newer. Installing could take a few minutes, depending on your Internet connection. Note: if you already have Node installed, make sure it’s version 8.3 or newer. Once you have Homebrew installed, run these commands in your terminal: The recommended way to install Node and Watchman is by using Homebrew. Let’s get started! Install Node.js and Watchman We use it to manage external libraries.Īs soon as they’re installed and we’ve done a tiny bit of configuration you’ll be able to launch your first barebone React Native app.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |