All of you friends, long time no see, Android Studio has become increasingly perfect, is definitely the future trend of Android development, if you are still in the development of Eclipse, it is recommended that you replace your development tools, as a mechanic, must be brave to accept the new things Android Studio is easy to use, but because it is a song development software, in the domestic environment, will because of * * wall, and give you a lot of not convenient; stewed after 2 days of painstaking research, finally completed the successful construction of Android studio and configuration, Here are some of my experiences that I hope will bring you help.
The first step: JDK download, configuration environment variables, this is not difficult, it is not detailed introduction, you can use degrees Niang check, a lot of graphics and text tutorials;
The second step: Install Android Studio, this step is not very difficult, the specific configuration selected right, has been the next step, there are a lot of graphic tutorials, not to do the introduction;
Everybody don't panic, a search a lot of things, I generally do not introduce, I introduce are dry, please patiently see below;
Step three: After the Android Studio installation succeeds, the first time you run it, you may see
This interface, waiting for a long time to go, with the problem to search the Web , a lot of people have a consistent saying is that in the Android Studio installation directory under the bin directory, Locate the Idea.properties file, append disable.android.first.run=true at the end of the file, and then rerun Android studio to go directly and skip the download step; When the first installation of the brine is done in this way, It does work, but it's not recommended, and it's a way to do this without a cure, when you start Android Studio, you need to download and install the appropriate build, skip this step, and if you want to import the project, there will be a problem, whether it's imported from eclipse or imported directly from GitHub, The same time need to download, then how to fundamentally solve this problem, and so long after all, the network is the problem, because of the wall, so use some circumvention software to solve the problem, but not all the software can be turned on the wall, such as an apricot will not, because this is a need to attach to the browser of the circumvention software, We download things here, and do not open the browser, so there are two kinds of circumvention software can be used, one is host***, this some people can download the host file success, some people download unsuccessful, unsuccessful words, you can choose another, * * door, using the wall software, you can successfully complete this step;
Import Project: If you accidentally skip the download process and launch Android Studio, you will likely have a hint like no connection when you import the project, where you can set up the proxy server;
Note: The above are Gaojie, it is likely to encounter some other problems, I met could not find .... gradle*** such errors, then you can follow the path prompt, open the File Manager to find, I found that my directory is stored under the Gradle is 1.0.0, so in the root directory under the Build.gradle to change the version number to a consistent classpath ' com.android.tools.build:gradle:1.0.0 '; There may also be an issue with BUILD_TARGET_SDK and Build_tools versions mismatch, and the workaround is to view your SDK Manager Find the installed BUILD_TARGET_SDK and Build_tools versions and modify them to a consistent version;
There may be not a PNG file such errors, my solution is to cut out the specified PNG files, open with paint, and then re-save to the PNG format, and then copied back to the project directory, it is possible;
I also encountered a problem with duplicate files during packaging of APK, the workaround is in the Build.gradle file, add
Android{packagingoptions{Exclude' Meta-inf/license.txt 'Exclude' Meta-inf/notice.txt ' } }
Also encountered the problem is not find the relevant jar package, but look under the Libs folder, the package is indeed in the AH, the solution is to right click on the jar file, select the Add as library, select the type of Jar Select module, and then succeeded;
All of these problems, after I skipped the first start of the installation process, when the first project to import problems encountered, solve these problems, finally realized the first project successfully imported and run;
Hope to be of help to you;
Android Studio installation and configuration experience, let you less detours