In fact, I trained before the time is to learn Android, but only then and it has one side, but destined to no part. After learning the basic knowledge of Java, it is sad to go to the company internship, and from the Android-shaped fellow. These days do not know what the wind, more and more want to put Android back to embrace, re-pick old love ah.
The next step is to attach my learning start and some problems and solutions:
1. Download ADT (Android Development Tools). Just download the latest in the official. The version I downloaded is: Adt-bundle-windows-x86_64-20140702.zip. The Eclipse development tools and Android SDK are already included in ADT.
2. Configure the environment variables. Android relies on the JDK, to install the JDK ahead of time and configure the JDK environment variables, which is not much to say. Need to configure the environment variables of Android, the general variable name takes Android_sdk_home, the value is the address of the SDK, example: D:\ANDROID\SDK. Then open cmd, enter adb-> carriage return, appear as shown, prove the configuration is successful:
3. Open Eclipse in ADT:
, the red box on the left is the Android SDK MANAGER, which is used primarily to update Android's running platform, image, API, etc., including all versions. The red box on the right is the virtual Machine Manager, which is used to create each type of virtual machine.
4. Create a virtual machine. Many tutorials on the web, I will not speak, only to write their own problems and solutions:
Questions (1)
When I created it, all the items were filled in and found that the "OK" button was grayed out and not clickable.
Problem reason: My cpu/abi was empty at the time, that is to say, my virtual machine does not have CPU image.
Workaround: Open the Android SDK MANAGER, such as:
Select the CPU image to download, you can choose one, you can also download the use of their own choice.
Questions (2)
When updating the CPU image, it is found that the access is always denied: Connection to Http://dl-ssl.google.com refused.
Problem reason: This problem is actually very egg ache, and our country forbid Google has relations should.
WORKAROUND: Open IP Query address query, get IP address, such as:
The corresponding configuration is then in its own hosts file,
Finally , select the Tools drop-down menu in the Android SDK Manager and select the Options Check Force HTTP request:
Problem solving.
5. Create the project.
Problem:
When you create a project, select the minimum compatible version 2.1, that is, Api7. The target version is 4.4 or more, then the created project will have an ancillary engineering APPCOMPAT_V7 , the project will always be error, reported no resource's fault.
Problem reason: Online find a lot, there is no good solution.
Workaround: Refer to the link: Click to open the link; I use the landlord first method, all versions are downloaded is still not resolved, the last resort to create a project when the minimum compatibility version to 4.0, only normal. Look forward to a better solution.
Finally, the last attached method to change the default address of the Android virtual machine: Click the Open link.
The first step has already begun, the future will be far away.
Share!
Android Learning Record (i)