Android development Lesson 1 ~ Android Studio instructions

Source: Internet
Author: User

Android development Lesson 1 ~ Android Studio instructions

I haven't written a blog for a long time


The company issued an android mobile phone, so we are going to learn about android development. If you have another mac, you need to learn about IOS development. Well. Then go to the android Official Website:

Http://developer.android.com/training/index.html




That's it. If you cannot open it, it means it is blocked. If you fail to open the proxy, it means your proxy is also blocked. In short, this place has been walled.

Click Build Your First App to view the introduction.



Introduction: Let's download Android Studio first. Click to download the page.




Start downloading:




Confirm the agreement and so on.



Here, do not use the default Download Method of the browser. Get the link and download it in thunder. This is faster. In the free time of the download, let's take a look at the introduction.



The above shows how good this Android Studio is. You can rest assured.



So I read the next section: Andding SDK Packages.



This section describes what the Android SDK requires. Android Studio is the IDE + android SDK. Here we mainly talk about the packages you want to download. Otherwise, they will not be available. In fact, you have downloaded the Android Studio and brought the packages. You do not need to download them any more.



The download is complete. Double-click to run it. But you 'd better check that JDK has version 1.7. Some versions of 1.8 are also supported. However, Android Studio does not support the latest version 1.8. Next.



The two folders are displayed in the installed directory. One is IDE (idea IDE) and the other is Android SDK.



Go to Android Studio, and then enter bin. Then you can see a bunch of exe files. If you are a 64-bit machine, run it with studio64.exe, and run it with studio.exe 32. Here I want to modify idea. properties.



If you do not want to modify it, You can directly open studio.exe?studio64.exe, and friends in China will usually be stuck in this place:



It is Fetching Android SDK component information. Here is where I despise google very much. It is something that can be used locally. Google's approach is to first update and then use it, and it does not check whether the network is faulty. I think Android is too young too naive. To solve this problem, modify the idea. properties file and add a row:

Disable. android. first. run = true

Either you can use the proxy for all requests, http/https/socket. Well, our agency cannot support all request proxies. If you have any agents available, please donate a Global Proxy. Skip the fetching phase and you will be able:



To prevent friends from creating new projects in China. It usually gets stuck here Gradle: resolve dependences es '_ debugCompile '. Here, you must first config... and then project default.



And then the Setting option.



Find gradle here, and thenOffline workSelect, click apply, and then return.



Click project stucture.



You can see whether the installed sdk and Jdk are in the correct position. If it is correct, skip it.



Then return to the page for creating a new project:



Next, you can see your project:



Well, the installation is complete. I tried to allow java to access the network through proxy. But it still does not work. Since the company's proxy was blocked last year, the current proxy can only do things through sock5. After being added as a Global Proxy, Baidu cannot connect. I have no idea how to use it. If yes, leave a message below.



Related Article

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.