Since Google's latest Android studio is highly regarded by developers, it is also a great experience.
I. Introduction of Android Studio
Android Studio is an Android development environment based on IntelliJ idea. Similar to Eclipse adt,android Studio provides integrated Android development tools for development and debugging.
Recently, Google has announced that it will stop supporting other integrated development environments such as eclipse by the end of this year in order to simplify Android's development efforts to focus on building Android Studio tools. And with the launch and refinement of the Android studio version, Android developers will be turning to the Android Studio development platform!
On May 16, 2013, at the I/O Conference, Google launched the new Android development environment,--android Studio, and improved the developer console by adding five new features.
Android Studio is Google's launch of a new Android development environment where developers can see how their apps look in different size screens while writing programs.
Google has improved the developer console by adding five new features, including optimization tips, application translation services, referral tracking, revenue graphs, beta testing, and staged presentations.
1, Optimization tips: Open your app in the main body, click Tips, you will get the suggestion: to develop a tablet version for your application;
2. Application Translation Service: Allows developers to obtain professional translation directly in the development subject. Upload your needs, select the translation, it will show the translator and the price, and in a week to send back the translation;
3, recommended tracking: Allow developers to find the most effective ads;
4, Revenue graph: To show the developers of their application revenue, the country to divide;
5, trial version of the test and staged display: The developer can test the application, and then to test users, test results will not be published. When a version of the test is finished, the developer can launch it to a specific percentage of users.
The original learning of Android is also always used eclipse, although not long, and use up slowly, card point, but after all familiar with, and suddenly to go to a new platform, is really quite unaccustomed. And do not say that the shortcut keys have changed, even Android Studio module is a what, how to delete the old project I also have to surf the internet for help, and gradually familiar with the time spent. But after a period of time, still feel very good ... Needless to say, now the online some of the Android Studio development environment of the tutorial to gather around here, while sharing some of the resources I collected, and then, everyone to enjoy it!
If you're just starting out with Android, you'll need to install Java JDK for your PC first, not here.
You can refer to the following: installation of JDK and environment variable configuration in Windows environment
Here are a few reminders:
1. Android Studio requires JDK version JDK7 and later
2, confirm that your computer operating system is 32-bit or 64-bit, you must download the corresponding JDK version: "Windows x86"-for Windows 32-bit machine, or "Windowsx64"-for Windows 64-bit machine. Otherwise, when Android Studio is installed, it will get an error when opened because it does not match the JDK.
3, JDK environment variables must be dictated by the requirements of the link, that is, the use of traditional java_home environment variable name, or open Android Studio because the path of the JDK can not find the same error.
Second, download Android studio.
Https://yunpan.cn/cu3CDq7G6zbzv Access Password 50f9
Third, install Android Studio
1. Double-click the installation file of Android Studio to enter the installation interface:
2. Select the installed plug-in.
The first one is the Android Studio main program, which must be selected.
The second one is the Android SDK, which installs the Android5.0 version of the SDK, which is also hooked up.
The third and fourth are the accelerators for virtual machines and virtual machines, and if you want to use a virtual machine debugger on your computer, tick it.
Click Next next when you are done.
3. Select the installation directory for Android studio and SDK
The directory that I selected locally.
Choose the disk you are accustomed to install the software can be, C drive D disk does not matter, the following SDK path back to configure the use of.
4. Set the maximum memory that can be used by the virtual machine hardware accelerator
If your computer configuration is good, the default setting of 2G, if the configuration comparison, choose 1G is similar, otherwise too big will affect you to run other software.
5, the next step, will enter the automatic installation mode.
If nothing happens, after a short period of time you will see the following interface, also indicates that the installation was successful. Start the software.
6. After opening Android studio, enter the relevant configuration interface.
This is the profile for importing Android studio, if it is the first time, select the last item: Do not import the configuration file, then click OK.
7, the previous step is completed, will enter the following page, which is the program to check the SDK update situation.
Because our country characteristic socialism national conditions, if your computer cannot FQ or does not configure the hosts, this page will be stuck to when who also said not good.
We recommend that you do the following:
(1) in the Android Studio installation directory under the Bin directory, locate the idea.properties file;
(2) Append disable.android.first.run=true at the end of the document.
(3) "Skip this step." If you need to update the SDK later, click on the last red link in the "Second, resource download" above to download the required installation package for offline configuration.
Select a theme and font.
I chose the theme of cool black.
Themes and fonts:
(1) Also enter the Setup interface, click the IDE settings Editor-->colors&fonts-->font, select Darcula in the scheme name can be a cool and eye-protecting black interface, and then click Save As ..., take a new name and select a suitable size value based on the effect of the preview screen to complete the font modification.
(2) Change the theme to Darcula under preference-appearance.
8. If you enter the following interface, it means that you are not far from success.
Here, the installation configuration for Android Studio is complete. Start your Android development journey below!
Iv. Create an Android project.
1. To create a first HelloWorld project. Other platforms are pretty much the same, assuming you've already configured the JDK and Android SDK environment, and you're installing studio for the first time.
When you finish updating the Android SDK, you will see this interface. Until this interface is explained, you can use Android Studio.
Option 1: Create an Android studio project.
Option 2: Open an Android studio project.
Option 3: Import the official sample to download the code from the network. This feature is not available in previous beta versions, and it is recommended to take a look at the official examples.
Option 4: Import the code from the version control system. Supports CVS, SVN, Git, Mercurial, and even GitHub.
Option 5: Import a non-Android studio project. Like the pure Live Eclipse Android project, Idea Android project. If your eclipse project is exported using the official recommended export (that is, exporting using Generate Gradle build files), we recommend that you import using option 2.
Option 6: Set.
Option 7: Help documentation.
If some of the options cannot be clicked, stating that your JDK or Android SDK directory is pointing to a problem, please see the settings below **JDK or the Android SDK directory * *.
2. Fill in the app name and package name.
Default generated name:
Name after filling in:
3. Select the Android version.
4. Select an adaptable interface.
This page selects an activity template, like Eclipse, we choose a blank activity.
At this point a simple studio project is completed
v. Create a virtual machine device.
As follows:
Tips: How to set up a JDK or SDK.
Sometimes many people running Android Studio will remind you that the JDK or Android SDK does not exist and you need to reset it. You need to go to the global Project Structure page to set it up. Go to the Global Project Structure page method as follows:
Select Configure--Project Defaults--Project Structure. Set up the JDK or Android SDK directory under this page.
Android Studio installation and use tutorial in Windows environment (detailed steps for graphics)