Android Development First Lesson ~ Android Studio Usage instructions

Source: Internet
Author: User

I haven't written a blog in a long time.


The company sent an Android phone, so be prepared to learn about Android development. If you send another Mac, be prepared to learn about iOS development. Well. Then go to the Android website:

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




Here it is. If you can't open it, it means the wall. If you hang up the agent will not open, indicating that your agent has been the wall. In short, this place has been wall.

Click the build Your first app and see the introduction.



Introduction says, let's first download Android studio again. Click to download page




Download it now:




Also to confirm the agreement and so on.



Here do not use the default browser download, the link to get to, and then put in the Thunder download it. This is faster. Read the introduction in the free time of the download.



It says that this Android studio is much better. Anything, you can rest assured.



I then looked at the next section: Andding SDK Packages.



This section says nothing about the Android SDK. Android Studio is IDE + Android SDK. The main point here is that you have to download the package, otherwise it won't work. In fact, you downloaded the Android Studio, which itself brought the several package. In fact, no need to download.



The download is finished, double click to run it. But you'd better check that the JDK has a version of 1.7. Some versions of 1.8 are also available. But the latest version of 1.8, Android Studio is not yet supported. And then all the way next.



Go to the installed directory to see the two folders, one is the IDE (IDEA IDE) and the other is the Android SDK.



Go to Android Studio and then into the bin. Then see a bunch of exe files. If you are a 64-bit machine, use Studio64.exe to run, 32 to run with Studio.exe. Here to modify the idea.properties.



If you do not make any changes, open the Studio.exe or Studio64.exe directly, friends in China will generally be stuck in this place:



is fetching Android SDK component information. This is the place where I despise Google very much. It's a local thing to use. Google's approach is to update, reuse, and not check the network for problems. Online someone rated Android as too young too naive. I think so too. So the solution to this problem is to modify the previous Idea.properties file to add a line:

Disable.android.first.run=true

Either you have all the requests, Http/https/socket can go agent. Well, my company's agent cannot support all request agents. Can use the agent's colleagues please donate me a global agent. Skip the fetching stage and it's here:



In order to make friends in the Chinese region not stuck in creating new projects. Generally will be stuck here gradle:resolve dependancies ' _debugcompile '. Here must first config ... Then the project default.



Then the Setting option.



Search here for Gradle, then tick offline work and click Apply. and then return.



Then just click Project Stucture.



You can see if you have the correct location for the SDK and JDK you installed. If it's correct, just skip it.



Then go back to the page where you created the new project:



And then all the way next. You will be able to see your project:



Well, finally the installation is over. I tried to get Java to use proxies to access the network. But it's still not working. Since last year the company's agent was sealed off, now the agent can only through SOCK5 to do things. Added as a global agent, Baidu is not connected. I don't know how to use it at all. There will be use, please leave a message below.



The first lesson of Android development ~ How to use Android Studio

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.