Android Studio 1.0: installation and configuration of Apple Computer and android

Source: Internet
Author: User

Android Studio 1.0: installation and configuration of Apple Computer and android




Preface

Recently, Google has finally met expectations and released the long-awaited official version of Android Studio 1.0. I am an Android developer. I have used Eclipse before and tried Android Studio 0. x. It feels good. This official version can bring a lot of surprises to Android Developers.


Installation and configuration


Prerequisites: Because Android uses Java as the standard development language, you need to install the Java Development Environment in your operating system. If you have not installed the Java development environment, you can search for how to download, install, and configure environment variables online. This article does not describe too much. There are many graphic tutorials on the Internet. For Java JDK (Java Development Kit) Version. I installed the latest JDK 1.8 (for Java 8). For Android Studio, JDK 1.7 and 1.6 are acceptable.


Here are some URLs for installing and configuring Java development environments:

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

Http://blog.csdn.net/yusiguyuan/article/details/14123669

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 an Android Studio version for your current operating system. I demonstrated it on a Macbook, so it is "Download Android Studio for Mac ", click this green button to download it.



Double-click the downloaded file (dmg for the Apple Computer) To Go To The Installation Wizard:



"Standard" (Standard) installation is not available for Android sdks. If you have installed the SDK, you can select "Custom" (Custom ), here we select the default Standard and click Next (Next ),



We need to select the "Accept" (Accept) AndroidSDK and the simulator runtime environment respectively. The "Finish" button can only be clicked after Accept is selected. After you press 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,



Now we can officially start our journey to Android Studio!


However, on the Apple computer, it is estimated that there will be a problem that has not been solved yet, that is, Android Studio cannot find the installed Java environment, and the following prompt box will be displayed:



Therefore, you need to make some changes by yourself. You need to modify the Info. plist file of Android Studio, open a terminal (go to> utility> terminal), and enter:


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


Replace


<Key> JVMVersion </key>

<String> 1.6 * </string>


Change


<Key> JVMVersion </key>

<String> 1.8 * </string> (because my JDK version is 1.8; if it is 1.7, it needs to be changed to 1.7 *; if it is JDK 1.6, there should be no startup issues)



After modification, you can start it.




*New friends, please follow the public accountProgrammer Alliance 」


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.