简体   繁体   中英

Help can't import com.google.android.maps

I already tell project use libraries com.google.android.maps in the manifest of project but in my activity it shows errors about importing com.google.android.GeoPoint. and others.

which target version you are using? use target Google apis 1.6 instead of android. You can the change the target version from project itself. 1.Right click on the project 2. choose Build path--> Configure Build path 3.Window will be opened, choose Android in right corner of the window then change target version in to Google apis.

Based on the short described question, i can assume below:

Yes you have mentioned it inside the AndroidManifest.xml file but have you choosen the library instead of SDK while creating android application. If no, then you just need to select Google API (Google Inc.) .

You can mention it on the AndroidManifest.xml but first of all choose google api sdk.

//in AndroidManifest.xml >>uses-library android:name = "com.google.android.maps"/>

then add maps.jar search for maps.jar and coppy path in your computer

example:C:\Users\android\sdk\add-ons\addon-google_apis-google-17\libs\maps.jar

then right click on your projects >>Build Path >> Configure Build Path..>>Java Build Path>>Libraries taps >>Add External jars..>>past path:C:\Users\android\sdk\add-ons\addon-google_apis-google-17\libs\maps.jar>>choose maps.jar click ok..ends thank you.

First you have to make sure you have installed Google API

Then set your project's properties in Eclipse to check off the Google APIs version of the SDK.

and Make sure you have include this library in AndroidManifest FIle

<uses-library
        android:name="com.google.android.maps" />

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM