I have a summary of various issues in installing ADT Bundle for Windows
1. Solve the difficulties of accessing Google servers in China:
1. Launch Android SDK Manager;
2. Open the main interface, select "tools", "options...", pop up the "Android SDK manager-settings" window;
3. In the "Android SDK manager-settings" window, fill in port"and 80 in the"http proxy server"and"http proxy mirrors.neusoft.edu.cn input boxes, and select " Force https://... sources to be fetched using http://..."check box;
4. Click the "close" button to close the "Android SDK manager-settings" window and return to the main screen after the setup is complete.
5. Select "packages", "reload".
2. Error updating Android SDK Failed to rename directory \temp\toolpackage.old01
Plan to update the Android SDK version to Android SDK Tools 20, open the SDK Manager.exe to start the update, and pop up the error prompt when installing: Failed to rename directory D:\android-sdk\tool S to d:\android-sdk\temp\toolpackage.old01. Installation failed, this problem does not appear on Ubuntu, Win7 appeared on the, said can not change tools this file name, originally when the SDK opened After Manager.exe, will run some tools folder under some programs, such as Android.bat, this will make tools this folder is locked, can not be modified, there are many online to use the command line to update, this is a bit complicated.
Now find another way to be a fool:
Close the previously opened SDK Manager.exe, copy the Tools folder in the SDK, place it in the same level of tools directory, and open the copied Tools folder (typically "tools-copy") and open it directly android.bat file, it will automatically open the interface of the SDK Manager.exe, and then update it, until the update is finished, the copy of the Tools folder is OK, which also avoids the error of making changes to the open file.
3. The most common is the SDK and ADT version incompatibility issues, this should pay special attention to
For example: This indicates that the SDK version is higher than the ADT version; there are now 2 ways to fix the problem: 1. Upgrade ADT, but the domestic Google can not use, unable to upgrade online, only to find the offline Package 2. Reduce the SDK version to the D:\Java\ Adt-bundle-windows-x86-20131030\sdk\tools\lib Find the file Plugin.prop Open with Notepad, modify the contents inside, "23.0.0" to "22.3.0" can
Now let me put myself through the process of installing ADT and the SDK:
A. First of all, the ADT version I chose is adt-bundle-windows-x86-20131030; this is downloaded online, about 450M. Then I chose the SDK version is jdk-8u45-windows-i586, (this is the current version under the official website), and then the current ADT and the SDK version inconsistencies.
B. After unpacking the ADT there are 3 files (2 folders and an executable file), installation and other methods are not described here, installation path I want to explain here, it is best to put adt-bundle-windows-x86-20131030 and installed jdk (ie jdk1.8.0 _45) in the same folder, for example, so that it is convenient to configure environment variables later, (because the installation path can not have a space otherwise there will be a problem, generally our default installation path has program file)
c. Configuring Environment Variables
Variable name: ANDROID_SDK variable Value: D:\JAVA\ADT-BUNDLE-WINDOWS-X86-20131030\SDK
Variable name: CLASSPATH variable value:.; %java_home%\lib\tools.jar;%java_home%\lib\dt.jar;%java_home%\lib;
Variable name: Java_home variable Value: D:\Java\jdk1.8.0_45
Variable name: Path variable value:.; %java_home%\bin;%java_home%\lib;%android_sdk%\tools;%android_sdk%\platform-tools
I have a summary of various issues in installing ADT Bundle for Windows