mrmans0n / smart-location-lib

Android library project that lets you manage the location updates to be as painless as possible
1.65k stars 353 forks source link

Incompatible with google play services 11 #204

Open mnayef95 opened 7 years ago

mnayef95 commented 7 years ago

Get the error java.lang.AbstractMethodError: abstract method "com.google.android.gms.common.api.Api$zze com.google.android.gms.common.api.Api$zza.zza(android.content.Context, android.os.Looper, com.google.android.gms.common.internal.zzq, java.lang.Object, com.google.android.gms.common.api.GoogleApiClient$ConnectionCallbacks, com.google.android.gms.common.api.GoogleApiClient$OnConnectionFailedListener)" at com.google.android.gms.common.api.GoogleApiClient$Builder.build(Unknown Source) at io.nlopez.smartlocation.location.providers.LocationGooglePlayServicesProvider.init(LocationGooglePlayServicesProvider.java:83) at io.nlopez.smartlocation.location.providers.LocationGooglePlayServicesWithFallbackProvider.init(LocationGooglePlayServicesWithFallbackProvider.java:45) at io.nlopez.smartlocation.SmartLocation$LocationControl.<init>(SmartLocation.java:173) at io.nlopez.smartlocation.SmartLocation.location(SmartLocation.java:67) at io.nlopez.smartlocation.SmartLocation.location(SmartLocation.java:59) at com.appsmodern.alaovia.common.MyApplication.getLocation(MyApplication.java:76) at com.appsmodern.alaovia.common.MyApplication.onCreate(MyApplication.java:49) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1037) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6422) at android.app.ActivityThread.access$1800(ActivityThread.java:229) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1887) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:7325) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

when i use google serivce 11

ofirmiron commented 7 years ago

Hello, I just made a pull request that provides compatibility with google play services 11. Hopefully it will be integrated to the main branch soon.

irfaan008 commented 7 years ago

seems @mnayef95 is not much active on this. It still doesn't support the latest play service version

alexiovay commented 7 years ago

Still no solution to this?

mrmans0n commented 7 years ago

Ehm, it's already on prod? play services 11.0.2 is supported

On Fri, 25 Aug 2017 at 13:42 Alexio Vay notifications@github.com wrote:

Still no solution to this?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mrmans0n/smart-location-lib/issues/204#issuecomment-324908417, or mute the thread https://github.com/notifications/unsubscribe-auth/AAgnI7qLG-_aicia3ZzgT5XR2qAYHRFVks5sbsEZgaJpZM4N2hzY .

alexiovay commented 7 years ago

Do you mean 11.0.4? I use firebase services where no 11.0.2 exists but 11.0.4.

I can only make it work with firebase services 10.2.0 and your lib version 3.3.1.

mrmans0n commented 7 years ago

you can always exclude the gradle dependency from the library, so yours is used instead. that should work, the api hasn't changed.

On Fri, 25 Aug 2017 at 13:57 Alexio Vay notifications@github.com wrote:

Do you mean 11.0.4? I use firebase services where no 11.0.2 exists but 11.0.4.

I can only make it work with firebase services 10.2.0 and your lib version 3.3.1.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/mrmans0n/smart-location-lib/issues/204#issuecomment-324912057, or mute the thread https://github.com/notifications/unsubscribe-auth/AAgnIysn3xNysHe6_IhqhF2rCe6dkzS2ks5sbsSdgaJpZM4N2hzY .