Summary of problems and solutions in individual Android learning process

Source: Internet
Author: User
Tags android sdk manager

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.