Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

import com.google.android.maps.geopoint cannot be resolved

I have Java GoogleMAP project.This is not android project. I have done this project previous using KML. Now Google has changed to JSON/XML. I need to save coordinates within 2 location in database -postgresql. Then accroding to that i will draw the path in MAP.

Now the problem is : GeoPoint cannot be resolved to a type . I import like this also import com.google.maps.GeoPoint;. This also show as red mark. Please let me know what is an issues or problem?

I google it. No luck. All are mention about android google api setup.

Not an android project...

please help me..

Thanks in advance.

like image 958
Piraba Avatar asked Aug 17 '12 04:08

Piraba


2 Answers

Go to project properties, and go to Android. Select "Google API" instead of Android x.x. It works for me and ideally should work for you too.

like image 188
Nilanchala Panigrahy Avatar answered Sep 20 '22 17:09

Nilanchala Panigrahy


You need to compile your project with Google APIs.

  1. install Google APIs SDK

enter image description here

  1. Compile the project project with Google APIs

enter image description here

  1. You need to add the Google APIs Add-On to your project. See this document: https://developers.google.com/android/add-ons/google-apis/installing
like image 29
Asaf Pinhassi Avatar answered Sep 19 '22 17:09

Asaf Pinhassi