Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LocationClient cannot be resolved error #345

Closed
oneto018 opened this issue Jan 5, 2015 · 10 comments
Closed

LocationClient cannot be resolved error #345

oneto018 opened this issue Jan 5, 2015 · 10 comments
Milestone

Comments

@oneto018
Copy link

oneto018 commented Jan 5, 2015

My cordova project already uses google play services. When I tried to import this plugin am getting following error in eclipse

Description Resource Path Location Type
LocationClient cannot be resolved to a type GoogleMaps.java /MeDine/src/plugin/google/maps line 118 Java Problem

@wf9a5m75
Copy link
Member

wf9a5m75 commented Jan 5, 2015

Probably you are missing "com.google.playservices" plugin.
https://github.com/wf9a5m75/google-play-services

@oneto018
Copy link
Author

oneto018 commented Jan 6, 2015

I have google play services. But I have the latest version of the library. That version removed location client class completely

@wf9a5m75
Copy link
Member

wf9a5m75 commented Jan 6, 2015

Even though, this plugin specifies the previous version on my repository.

On Mon, Jan 5, 2015, 11:29 PM oneto018 notifications@github.com wrote:

I have google play services. But I have the latest version of the library.
That version removed location client class completely


Reply to this email directly or view it on GitHub
#345 (comment)
.

@oneto018
Copy link
Author

oneto018 commented Jan 6, 2015

yes it does. but I am already using google play services library for a new function. I can't use both version of the library in same project. And google play services is being updated to devices very often. So even if the app compiles properly with older version of the library , it would crash or not work in new version of the phones. Anyway fixing this issue properly will solve that #158. until that this plugin would be unusable in newer devices

@wf9a5m75
Copy link
Member

wf9a5m75 commented Jan 6, 2015

FusedLocationProviderApi did not work properly on some devices, the api never response, even if I set the timeout. So I rolled back to LocationClient class.

@oneto018
Copy link
Author

oneto018 commented Jan 6, 2015

I think to get this thing work on all os is to check which one (fused location provider or locationclient) and conditionally execute . But I haven't got any clue how that would be possible. Anyway hopefully in near future it would become more clear. Thank you for response

@wf9a5m75
Copy link
Member

wf9a5m75 commented Jan 6, 2015

I'll keep in mind, and test it in near future.

@wf9a5m75
Copy link
Member

@oneto018
I updated the plugin code for Google Play Services v22. It's available on the test branch.
Check it out.

$> cordova plugin add https://github.com/wf9a5m75/phonegap-googlemaps-plugin#test --variable API_KEY_FOR_ANDROID=...

@wxmerkt
Copy link

wxmerkt commented Jan 19, 2015

I will check the v22 release. Downgrading to v19 broke everything.

@wf9a5m75
Copy link
Member

v22 is here.
https://github.com/wf9a5m75/google-play-services/tree/v22

$> cordova plugin rm com.google.playservices
$> cordova plugin add https://github.com/wf9a5m75/google-play-services#v22

wf9a5m75 added a commit that referenced this issue Mar 1, 2015
wf9a5m75 added a commit that referenced this issue Mar 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants