Original link http://www.wuji8.com/meta/418552114.html
As Android market share gradually increased, learning Android more and more people, due to Google's instability, which also led to the construction of the Android development environment has brought great difficulties, this article mainly involves:
①java 8 Environment Construction:
② How to download the Android SDK R23:
③windows under the Android environment (with video, support all WinDOS versions, such as: XP,VASTA,WIN7,WIN8,WIN8.1,WIN10, etc.), ④linux under the Android environment (video, At the same time support all Linux,unix versions, such as: Mac system, Ubuntu system, Red Hat, Hongqi, etc.);
⑤ How to solve the slow problem of Android simulator;
⑥ How to create new, compile, run a HelloWorld project;
⑦ How to update the Android Sdk,android SDK Manager update failed issue;
Recommendations for version use:
① full Beginner, it is recommended to download the updated Adt-bundle version of Baidu Cloud (which also provides both Windows and Linux editions);
② for beginners with a certain base, it is recommended that you update all of the Android SDK, to prevent the future of complex environmental problems;
③ for advanced developers, you can update the specific version according to their own needs;
Software Baidu Cloud Link: Password: 50m4
Convenient for others is also convenient for themselves, if you think it is OK to click on the right side of the vote , this can help others find a faster way to solve the problem, in doubt can also leave a message oh, thank you!
Tools/Materials
Win8 x64
adt-bundle-windows-x86_64-20140702
Ubuntukylin-14.04-desktop-amd64
adt-bundle-windows-x86_64-20140702
Pre-preparation
Java Environment setup:
/shuma/1219814nnn.html
How to download the Android SDK:
/shuma/35715rrp.html
Note: For users who are using the * * Android SDK version (non-adt-bundle), you need to download the Android SDK plugin in Eclipse, as follows:
Windows under construction
Extract the downloaded "Adt-bundle-windows-x86_64-20140702.zip" to the root directory, such as: "D:\Android" below
① Add environment variable Android_sdk_home:
D:\Android\adt-bundle-windows-x86_64-20140702\sdk
② Append path under PATH environment variable:
d:\android\adt-bundle-windows-x86_64-20140702\sdk\platform-tools;d:\android\adt-bundle-windows-x86_64-20140702 \sdk\tools;
Linux under construction
Extract the downloaded "Adt-bundle-windows-x86_64-20140702.zip" to the root directory, such as: "Home/fuke-ubuntu/android" below
① Open the profile file by typing in the shell: "sudo gedit/etc/profile";
② add environment variables to the profile file:
Android_sdk_home= "/HOME/FUKE-UBUNTU/ANDROID/ADT-BUNDLE-LINUX-X86_64-20140702/SDK" PATH= $ANDROID _sdk_home/ Platform-tools: $ANDROID _sdk_home/tools: $PATH
HelloWorld
Create a new AVD:
If you feel that the simulator is slow, you can refer to "How to solve the slow problem with Android Emulator":
/shuma/810322agd.html
① open eclipse, such as: "D:\Android\adt-bundle-windows-x86_64-20140702\eclipse\eclipse.exe";
② Open Menu->file->new->android application Project;
1, set application Name:helloworld;
2, set up Project Name:helloworld;
3. Set up Package Name:fuke.helloworld
4. Set minimum Required sdk,target sdk,compile with:
API 19:android 4.4 (KitKat)
5, click Next;
Note : The SDK version should not be set to W or L series
① Click Next;
② Click Next;
③ Click Next;
④ Click Next;
① Right-click Project HelloWorld, Run as-1 Android application;
② the final effect, as follows:
Other
Note that there are three versions of Android 4.4:
API 19:android 4.4 (KitKat)
Mainly used in the development of 32-bit mobile phone system
API 20:android 4.4 (KitKat Wear), abbreviated W Series
Mainly used for Google glasses, Google watches and other small jewelry development
API 21:android 4.X (L-Preview), referred to as L series
Mainly used for the development of 64-bit mobile phone system, and currently supports preview version
About "How to create digital signatures on Android":
/yuer/563904ohd.html
About "Eclipse import Java and Android SDK source code, help document":
/shuma/1049708llf.html
About "Android NDK environment Configuration":
/shuma/133537pzl.html
Precautions
The number of bits in the Java version needs to be consistent with the number of bits in the Android ADT version
Android Environment Setup