First of all, you may have accidentally seen this article ... Yes, I'm completely on the first contact with Android development ... So the problems encountered are very simple ... (Most of the solutions are selected from StackOverflow)
One
Forget, after the new project, did not move any code, but various save. OK, because the SDK download is not complete, such as the default new project is Android 2.2, but I only downloaded Android 4.0 to 6.0 ... So just use the Android SDK Manager to download it, or directly set the default minimum Required SDK is already downloaded, such as I here is 4.0.
Two
The following error occurred when creating a new project:
thenot be started
Just turn eclipse off and turn it back on. If not, perform the following steps:
If you had not added ADT then DoThe following steps. HelpADDNew SoftwareADD.inchNameoption WriteAdt and ifYou have installed ADTinchYour computer Then AddIts pathinchLocation likejar:file:/d:/adt-16.0. 1. zip!/ and ThenADT would install. and ifThere isA problem try toRemove that ADT andInstall again.1) Remove the ADT repo (window->preferences->install/updates->available software Sites)2)AddIndigo Repo ("Http://download.eclipse.org/releases/indigo")3) Run Updates4)AddADT Repo again andInstall
Three
Quickly generate documentation Comments: Alt+shift+j
Four
The following error:
totype
Workaround:
ADD This import:
import android.view.View.OnClickListener;
If you is using Eclipse, you can use the Ctrl+shift+o to make it import those clases or interfaces automagically.
Five
The following error:
Plug-incom.android.ide.eclipse.adt was unable to load class android
Solution:
If you had not added ADT then do the following steps.
Help, add New software, Add.
In Name option write ADT
And if you have the installed ADT in your computer then the add its path
jar:file:/d:/adt-16.0.1.zip!/
And then ADT would install.
And if there is a problem try to remove that ADT and install again.
1the ADT repo (Window->Preferences->Install/Updates->Available Software Sites)2add Indigo repo ("http://download.eclipse.org/releases/indigo")3) run updates4addand install
Copyright NOTICE: This article is nomasp Couvant original article, if need reprint please contact oneself.
Summary of problems and solutions in individual Android learning process