Android Studio 1.0 Apple computer installation and configuration

Android Studio 1.0 Apple computer installation and configuration

[[125025]]

Preface

Recently, Google finally lived up to expectations and released the long-awaited Android Studio 1.0 official version. I am an Android developer myself. I have used Eclipse before and tried Android Studio 0.x version, which I feel is good. This official version can bring many surprises to Android developers.

Installation and Configuration

Prerequisite: Because Android needs to use Java as the standard development language, you need to install the Java development environment in your operating system. If you haven't installed the Java development environment yet, you can search online for how to download, install, and configure environment variables. I won't go into details in this article, as there are many graphic tutorials online. For the version of Java JDK (Java Development Kit), I installed the latest JDK 1.8 (Java 8). For Android Studio, JDK 1.7 and 1.6 should both work.

Here are some websites for installing and configuring the Java development environment:

http://blog.sciencenet.cn/blog-830496-778851.html

http://blog.sina.com.cn/s/blog_7d1c5c8601015ppr.html

After installing and configuring the Java development environment, go to the following URL:

http://developer.android.com/sdk/index.html

You will see that there is a version of Android Studio for your current operating system. I am demonstrating on a Macbook, so it is "Download Android Studio for Mac". Click this green button to download it.

Double-click the downloaded file (dmg file for Apple computers) to enter the installation wizard:

The "Standard" installation is for those who don't have the Android SDK. If you have already installed the SDK, you can choose "Custom". Here we choose the default Standard and click the Next button.

In the above picture, we need to select "Accept" for the Android SDK and the emulator runtime environment respectively. Only after selecting Accept for all of them, the Finish button can be clicked. After pressing the Finish button, wait for the installation of Android Studio, depending on the network speed.

After the installation is complete, double-click the Android Studio icon.

[[125026]]

We can officially start our Android Studio journey!

However, if you use an Apple computer, you may encounter a problem that has not been solved yet. Android Studio cannot find the Java environment we installed, and the following prompt box will be displayed:

So you need to make some changes yourself. You need to modify the Info.plist file of Android Studio. Open a terminal (Go to -> Utilities -> Terminal) and enter:

vi /Applications/Android\ Studio.app/Contents/Info.plist (vi editor is used here, you can also use your favorite editor, such as emacs, etc.)

Put the inside

<key>JVMVersion</key>

<string>1.6*</string>

Change to

<key>JVMVersion</key>

<string>1.8*</string> (Because my JDK version is 1.8; if it is 1.7 version, you need to change it to 1.7*; if it is 1.6 version of JDK, there should be no startup problem)

After the modification, you can start it.

<<:  Cocos Studio V2.1 Open Plan Announced

>>:  NetEase, don’t drift away

Recommend

Wonderful Quotes from Speakers at the World O2O Expo

On January 17, 2015, the first World O2O Expo, gu...

How much does it cost to rent a server with high-defense DDOS IP?

How much does it cost to rent a server with high-...

Qiku phones are waiting for third-party apps to be pre-installed, free of charge

[[135168]] Zhou Hongyi said not long ago that he w...

Gigya: 2017 Consumer Attitudes towards Privacy and Security Report

199IT original compilation There are still many t...

Hey, are you ready to welcome the little cutie~ The baby koala is born!

I guess everyone already knows it~ Our little Liu...

Weekly Science Talk|Little Lactobacillus can also achieve great things

Lactic acid bacteria are a type of bacteria that ...

5 lessons behind explosive product growth

As Pinterest grew from 5 employees to a team of 6...

The Four Color Theorem: A New-Age Algorithm for the Classical Coloring Problem

You must have heard of the Four Color Theorem, wh...

Analysis of advertising in the home furnishing industry!

As people's living standards improve, obtaini...

99% of products fail due to poor operation!

How to succeed in starting a business? I believe ...

Social Media Marketing Strategy with Sales of 1.5 Million+ in 10 Days

In large-scale marketing activities, community op...

How much does it cost to rent a dual-line server?

How much does it cost to rent a dual-line server?...