On macOS systems, you can use the NativeScript CLI to develop Android and iOS apps. BlueStacks, one of the oldest and easiest-to-use Android emulators, is a good bet.This page contains a list of all system requirements needed to build and run NativeScript apps on macOS, as well as a guided walkthrough for getting these requirements in place. You have a few different options when it comes to emulators. Apple doesn’t make it easy to run Android apps on Mac, but with the help of an Android emulator, you can get your favorite apps up and running. Running Android Apps on Mac.
![]() ![]() Setup Android Emulator Install XcodeprojInstall CocoaPodsNOTE: This is the directory that contains the tools and platform-tools directories. Export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)In the terminal, run the following command: brew install -cask android-sdkNext, run the following command to set the ANDROID_HOME system environment variable: export ANDROID_HOME=/usr/local/share/android-sdkNOTE: : If you are installing via Android SDK Manager, then the path for ANDROID_HOME would be '/Users/$userid/Library/Android/sdk/'. Sudo gem install xcodeprojInstall CocoaPods sudo gem install cocoapodsInstall python six package pip install sixInstall the dependencies for Android development.Set the JAVA_HOME system environment variable. To verify that the installation is correct please runIf command above do not pass then build tools are either not installed or not selected.You can select build tools via xcode-select command or via Xcode (Preferences -> Locations -> Command Line Tools).Install the xcodeproj ruby gem with the following command.You can check sdkmanager documentationSetup Android Emulators (AVD) by following the article hereRun the following command. $ANDROID_HOME/tools/bin/sdkmanager "tools" "emulator" "platform-tools" "platforms android-28" "build-tools 28.0.3" "extras android m2repository" "extras google m2repository"If you are behind a corporate proxy, it might be necessary to pass additional arguments. You can alternatively use the following command, which will install all required packages. ~/.bash_profile if you are using Bash, ~/.zprofile if you are using Zsh)In addition, install all packages for the Android SDK Platform 28, Android SDK Build-Tools 28.0.3 or later, Android Support Repository, Google Repository and any other SDKs that you may need.
0 Comments
Leave a Reply. |
Details
AuthorAshley ArchivesCategories |