Investigate the evolution of the Android Studio development environment (with installation tutorials, multi-image)

Source: Internet
Author: User

The first public appearance of Android Studio (hereinafter referred to as) was at the Google I/O conference in 2013, when Google released its beta beta at the 14 conference, and today it has been updated for several times and is very powerful. such as (excerpt from Baidu Encyclopedia Android Studio Entry):

1. Gradle-based build support
2. Android-specific refactoring and quick fixes
3. Tips tool to capture performance, availability, version compatibility issues
4. Support Proguard and application signatures
5. Template-based wizards to build common Android app designs and components
6. Powerful layout editor that lets you drag UI controls and preview effects

Say so much, but good or bad only personally used to know, want to know pear taste from the first taste.

——————————————————————————————————————————————————————————————————————————————————————————————————————————————— —————————————————————————————————

The following is an installation tutorial for as:

First step: Preparation and installation before installation

For download of AS, unable to download from the official website of the students, can be on the Android Studio Chinese community, according to their own operating system to choose to download. Note that there are 3 versions of the Windows system, one with the SDK, one without the SDK (for the students who already have the SDK), and one that is not installed without the SDK (decompression is done). As is the use of the SDK and JDK must have, these two things in the Android Studio Chinese community can also download, all downloaded after download can be installed (JDK installation and Java environment Configuration please refer to other tutorials). The installation process is simple and installs just like normal software. After the installation is complete, go to the bin of the installation directory and run according to your JDK selection, which is the JDK instead of the operating system:

Here you can create a desktop shortcut to open in the future. If you do not select the corresponding, you will be prompted with the following error:

Step Two: Configure

This will appear the first time you run:

If you wait for a long time to appear this error:

Just open the file with Notepad:

At the end of the file, add the following sentence, save and reopen as :

Disable.android.first.run=True

If this error is present:

Directly to the right of the cancel ignore, then will enter the interface (this side because the previous figure forgot to cut, after the subsequent repeated to get a few times or out, so borrowed pictures on the internet, forgive), if you can not enter this interface, please try to use the above solution, Personal advice this side of the setup can be closed without a tube :

Select Custom:

Choose your preferred interface:

Note This way select your SDK path, finish will start to download and install the checked content, if the network speed is not good this may take a long time, and if you want to cancel halfway, you also need to wait a while, do not want to wait for the task manager can be directly closed.

Step three: Create a project

Then, if everything goes well, it will go into this interface and select the options in the red box in order:

Check that the SDK and JDK paths are configured correctly, and if they are incorrect, click on the ellipsis on the right to configure them:

After selecting OK, return to:

To create a new project to this interface:

Set the project name and path:

Select the Android version as needed, and select API 14 if you need it:

Select as needed, default is not required:

Ditto:

After a long wait for the creation of the project, Midway, if there is a check and so on, choose background ignore it. The reason is ignored, because most of the last hint failed to fetch ...

After the "daily headline" is immediately closed, uncheck the red box to make it no longer visible:

Normally, after entering the main interface should look like this, click on the messages below, at the bottom should see 0 errors:

If you are "lucky" to encounter a hint of 3 errors (the "3 errors" issue mentioned next door), and the error roughly includes these things:

D:\Android\project\MyApplication\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\  23.0. 0\res\values-v23\values-v23.xmlerror: (2for'android: TextAppearance.Material.Widget.Button.Inverse'. Error: (2for'android:Widget.Material.Button.Colored'.

Take a look at the following solution if you have not encountered can skip.

——————————————————————————————————————————————————————————————————————————————————————————————————————————————— —————————————————————————————————

Solution:

The first step: Open this thing, note to choose the app instead of the project itself, if I do not find, you can find Build.gradle under the app, the red box position 23.0.1 changed to 22.2.1

Step Two: Enter the directory where the SDK is located, similar to

D:\SDK\extras\android\m2repository\com\android\support\appcompat-v7

The bold section must be the same, then delete the 23.0.0 folder, then open the Maven-metadata.xml file with Notepad and delete <version>23.0.0</version>.

Step three: Select Rebuild Project When you are finished selecting clean Project,clean in As.

——————————————————————————————————————————————————————————————————————————————————————————————————————————————— —————————————————————————————————

If the phone with the preview does not appear, you can fix it by lowering the Android version:

Fourth Step: Run

With no error, you can start running and click the green button:

Wait for a period of time after the appearance of this interface, the above is the existing device, if the phone using a USB connection to the computer, this side will appear optional devices, select can. No classmates can click the ellipsis button in the red box to create a new virtual device:

Click the middle button to create the virtual appliance:

Select the screen size and so on parameters:

Then follow the default, all the way next. You can select the virtual appliance to debug after you have created it. By the way, as comes with a virtual device for the first time when the boot is slow, it may take a long time, some students may also encounter virtual device comparison card situation, so at the end of this article attached to the external simulator tutorial.

——————————————————————————————————————————————————————————————————————————————————————————————————————————————— —————————————————————————————————

Here are some settings related content (readings):

There are two ways to adjust the font of a code:

First, enter the settings:

Check this to adjust the font size using CTRL + SCROLL wheel:

Second, in the same setting, create a new font here:

You can then modify the font size:

Set the display line number:

The installation tutorial for this as has all ended.

Description

This article on the problems encountered in the solution provided by the network, through my practice and collation , is indeed feasible. If there is a classmate in the installation process that is not mentioned above or cannot be resolved, you can try the following methods to solve:

1. Can cancel the direct cancel, and then re-run;

2. Cannot cancel the software directly, and then re-run;

3. Delete the original project, or overwrite the original project when rebuilding a project or creating a new project.

Although the above methods do not seem to use the eggs, but they are in practice in the random use after the problem has been solved, wherein the cause of the problem and the principle of the solution is not known, so the consequences of using these methods I am not responsible. Please meet the difficulties of students to use Baidu Google, their own solution to find the fun and sense of accomplishment only experience to understand. If there is anything that you do not understand, welcome to the comment area to ask, I know that must answer. In addition, if you have classmates as no matter how successful, please see the following IntelliJ idea installation tutorial.

——————————————————————————————————————————————————————————————————————————————————————————————————————————————— —————————————————————————————————

IntelliJ Idea Installation Tutorial (idea version is 14.0.3):

Compared to As,idea can be downloaded directly from the official website, the installation process is quite simple, encountered a lot less problems. The preparation phase and the installation of as are required for the SDK and JDK. The installation process is like normal software, and there is nothing special to explain. After double-clicking the desktop icon to run Idea, no icon can be opened under the installation directory bin:

There seems to be no choice of the corresponding version of the error, but it is recommended to choose the corresponding version. Then create a new project directly:

As shown in the selection diagram:

After the name, next there will be a pop-up hint:

Here you need to configure the JDK path, click OK, select the JDK path:

OK then there will be a very similar but not the same window, here to set the SDK path:

After configuration, there is a description of the configuration complete:

You can then go into the idea main interface to program.

——————————————————————————————————————————————————————————————————————————————————————————————————————————————— —————————————————————————————————

To connect an external emulator tutorial:

I use the currently used Android simulator-carefree Android simulator as an example to illustrate:

The first step: because the carefree Android simulator comes with ADB, so when setting the environment variable (path), the directory selection simulator is located in the directory (for the settings of environment variables refer to other tutorials):

Step Two: open a command prompt and enter the ADB start-server on the command line, i.e.:

Step three:CD into the SDK directory of Platform-tools, enter the ADB connect 127.0.0.1:21503, namely:

When the connection is successful, it can be seen when the device is selected by cutting back as.

Note that you need to open the emulator and turn on USB debugging when connecting, as follows:

To enter the settings, click on the bottom red box as shown:

Enter developer mode with a few consecutive clicks of red box content:

Back, click Developer Options:

To turn on USB debugging:

Final Result:

——————————————————————————————————————————————————————————————————————————————————————————————————————————————— —————————————————————————————————

THANKS reading!

Investigate the evolution of the Android Studio development environment (with installation tutorials, multi-image)

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.