In this tutorial, you will learn, how to setup Android Studio on Mac OS Sierra and how to create a simple Ionic 2 project. And how to generate the Android APK file.
Android Studio Android Sdk Path. If you see output like below that means the android sdk path variable has been configured successfully. Generally the android sdk is installed in Usersuser-nameLibraryAndroidsdk folder in Mac OS. Once you have Homebrew installed, run these commands in your terminal while inside your project root folder. Install Android Studio Download and install Android Studio. Start Android Studio, and go through the ‘Android Studio Setup Wizard'. This installs the latest Android SDK, Android SDK Command-line Tools, and Android SDK Build-Tools, which are required by Flutter when developing for Android.
Prerequisite
1. Java
2. Android Studio
You must first install Java before installing the Android Studio. Gemini 221.
Install Java
Download Java 1.8 using the below link
Download the dmg file and double click to install the Java. Once you finished the installation, go to terminal and type
The above two command will return the installed Java version. If the above command is not working, then the Java is not installed properly or Java is not configured in the PATH. However, most of the times it won't fail.
Install Android Studio
Download the Android studio using the below link
Android Studio Install For Mac Mojave
It is also dmg file. Double click and finish the installation.
Add Android Studio Path
After installing Android Studio, you must include it in the PATH. Execute the below command in the terminal.
Update Android Studio SDK
Malwarebytes for mac os free. Open Android Studio and click SDK manager
Android Studio Install For Mac Os
Install the latest SDK tools like 5,6,7 versions. It will take some time depend on your internet connection.
Create Ionic 2 Project
You need the Ionic framework, before creating the Ionic 2 project. If you have not installed Ionic Framework, then visit the below link to learn, how to install the Ionic framework.
Create a new Ionic 2 project using
After creating Ionic 2 project, add Android platform to the Ionic project using
Then generate APK using the below command Chronicle pro 9 6 0 3 key.
After generating the APK successfully, the terminal will display the APK generated location.
That's all. You were done.
Please note. Now you can install the APK in your Android phone by enabling the Install from Unknown Source in settings. However You are not able to publish this APK to Google Play store. To publish to the Google Play Store, you need to do some extra work. I write a separate post soon for how to publish your APK to the Google Play Store using Ionic 2 Framework.
While generating the APK in Mac OS Sierra, sometimes you will face the below error message
Error: Could not find Gradle wrapper within Android SDK. Might need to update your Android SDK - Android
If you encounter that error, then follow this solution.