Android Studio On Macos

broken image


Setup Android Emulator on Mac OS X The purpose of this section is to guide you to create in your development environment an Android emulator. Android emulators are managed through a UI called AVD Manager AVD Manager has a nice interface when started from Android Studio. As of Android Studio 2.2, the IDE comes bundled with a custom OpenJDK build which contains a bunch of additional fixes to make the IDE work better (such as improved font rendering). If you've configured the IDE to use a custom JDK in the past, you should consider removing those configurations now and try the embedded JDK. Using the free Android Studio, you can set up a virtual machine on Windows, MacOS and Linux computers, then run the Chrome OS inside it. You won't get the complete Chrome OS experience on it but.

The purpose of this section is to guide you to install in your development environment all the dependencies for Android development.

The fastest way is to download and install Android Studio.

Latest current version for Android Studio is available at: https://developer.android.com/studio/index.html Atom editor wiki.

Select the Installer Icon:

To install Android Studio on your Mac, proceed as follows:

  1. Launch the Android Studio DMG file.
  2. Drag and drop Android Studio into the Applications folder, then launch Android Studio.
  3. Select whether you want to import previous Android Studio settings, then click OK.
  4. The Android Studio Setup Wizard guides you though the rest of the setup, which includes downloading Android SDK components that are required for development.


Click the Next button.

Select a Standard installation and click Next.

On the Verify Settings window, click Finish.

Once installed, you get the Welcome to Android Studio window :

Click on the Configure Button and select SDK Manager:

In the left pane select Android SDK. On the right pane, select the SDK Platforms Tab and select the SDKs for API level 22 up to 24.

Click the OK button to download and install these Android SDKs.

After accepting the licence you should see the following screen: Create 3d model of house.

Wait until all components are installed.

Setup the ANDROID_HOME system variable

Open the SDK Manager and make a copy of the Android SDK Location :

Android

Open the Terminal app and type the following command:

To check the ANDROID_HOME is correctly setup type the following commands:

You should see the following result:

Persist the ANDROID_HOME system variable for the current user

The ANDROID_HOME system variable must be persisted when you leave and resstart a new Terminal Window.

Android Studio Uninstall Mac Os

One way to do this is to create or update a .profile file in the user's home directory. This file should contain all the commands that should be executed before the Terminal Window session starts.

Open the Terminal app and type the following commands:

In the Text Editor, add the following line

You should have a screen similar to the following screenshot:

To save the .profile file, type CTRL + X, then type Y followed by the ENTER key.

Once done, quit the Terminal window, reopen a new one and type the following command to check if the system variable has been persisted:

You should have a non empty response.

Android Studio On Mac Os

References





broken image