Scene:
1. How do I configure the Android development environment when I suddenly get an Android development task?
2. Now Android Studio is based on idea, running the odd slow and card on my computer. And there are legacy eclipse projects, most of which are based on eclipse.
So getting started is a good fit for ADT to develop Android programs.
3. If you have in-depth research, it is not impossible to develop directly with the other IDE with the build SDK.
The first step. Configure the Android development environment for ADT.
Note 1: If you want to download all Android APIs, it will take a lot of space, so choose a special version API.
There is the emulator image file is very large, if you want to download the estimated need more than 10G of space bar, if directly with the real machine debugging,
You can not download these images.
Figure 1
Figure 3
Note The 2:android SDK is best installed in the same directory as the eclipse, which makes it easier to see the source code and so on to find related resource files.
Figure 4
Note 3: Because Google is wall, you need to configure hosts to download the Android SDK.
C:\Windows\System32\drivers\etc\hosts
Add to
203.208.48.134 dl-ssl.google.com
Refer to the following article to configure the environment, choose one:
Http://www.cnblogs.com/allenzheng/archive/2012/11/10/2762379.html
http://blog.csdn.net/cxc19890214/article/details/41249761
The second step. Resources
--Eclipse 3.7.2 (Eclipse IDE for Java developers), if the 64-bit machine is recommended to download the 64-bit version.
Http://www.eclipse.org/downloads/packages/release/indigo/sr2
--ADT. Downloading the latest ADT 23.0.4 (October 2014) requires flipping the wall:
Http://developer.android.com/sdk/installing/installing-adt.html
Https://dl.google.com/android/ADT-23.0.4.zip
--
The third step. Create a new simple project and run it.
Menu File->new->android Application Project.
Figure 2:
FAQ: Solutions to problems encountered during development.
Question 1:the zipalign tool is not found in the SDK.
Please update the latest SDK and re-export your application or run zipalign manually.
Aligning applications allows Android to use application resources more effciently.
Workaround: Update to the latest SDK Build-tool.
Issue 2: [2015-01-25 08:32:00-simpelexample] e:\workspace_android\appcompat_v7\res\values-v21\styles_base.xml:75: Error:error Retrieving parent for item:no Resource found that matches the given name ' Android:Widget.Material.ActionButt On '.
Workaround: Minsdkversion Select 8,maxsdkversion and targetsdkversion must be 21, because the generated template example is based on 21 and will certainly compile 21.
ADT-23.0.4
Reference: http://blog.csdn.net/cxc19890214/article/details/41281439
Question 3:
1. When a class writes the main function to test the code, the following crash occurs when using ADT.
Reference: http://www.cnblogs.com/lzhitian/archive/2012/04/12/2444960.html
#
# A Fatal error has been detected by the Java Runtime environment:
#
# Internal Error (classfileparser.cpp:3494), pid=7480, tid=7376
Workaround:
1. Select the test class that you want to run, right-click Run as--run configurations ...
2. Switch to the CLASSPATH option bar, delete the Android Library in bootstrap entries and click Advanced on the right. ADD Library, JRE System Library, all the way next.
Then run the class again and it will work.
Issue 4: There is a appcompat_v7 issue with Eclipse when creating an Android project
Reference: http://blog.csdn.net/crazykbc/article/details/21553699
Overall: The project is a library project, and the role is to get your Android project in the API 7+ The SDK version (i.e. the Android2.1 version) can access Actionbar's Api,actionbar equivalent to the user interface's action Bar
Question 5:android where is the SDK manager? Does it have any effect on closing it?
Android SDK Manager is a standalone program that shuts down eclipse without affecting it.
Menu Windows->android SDK Manager.
Can be run directly in the installation directory of the Android SDK. SDK Manager.exe
[Introduction to android]_[Primary]_[android development environment Configuration (Windows)]