Eclipse does not recognize imports

I seem to be looking for something in Eclipse. It does not recognize any of the libraries I'm trying to import.

Here are some of the things that are not recognized:

import java.util.ArrayList;
import android.content.Intent;
import com.google.android.maps.MapView;

This is an open source project that I downloaded and then imported into Eclipse. I think that I also downloaded google apis incorrectly, because things like MapView do not work in my other projects either. Can someone please help me?

Best

Aneem

EDIT:

Most issues fixed. Did this by hovering over the import line and clicking "Fix project settings ..."

Now, the only thing I need to do is get the Google Map related API to work.

+5
source share
4 answers

ADT goto → Window → . Android ( ), , ADT.

SDK, Android. SDK.

ADT SDK, , eclipse Android, ( ). Android Android. .

+5

:

  1. → Android → , Android SDK . SDK , .

  2. → Java Compiler → " " "1.6". , JDK 1.7, !

+1

Most likely your ADT plugin is not pointing to the Android SDK. Follow the instructions to install and configure the plugin:

http://developer.android.com/sdk/eclipse-adt.html

0
source

I right-clicked on the project and the selected properties and added Google API 2.3.3 as the target and made the project-> clean and was able to run the application. Many thanks.

0
source

All Articles