domaven / xamarin-plugins

Cross platform Xamarin & Windows plugins for PCLs
MIT License
37 stars 51 forks source link

Can't build Android project with Geofence plugin #23

Open pmdauv opened 7 years ago

pmdauv commented 7 years ago

I try to use Geofence Plugin in a Multiplatfom Native App with Xamarin Studio Community. When I build the solution there is the following issue in Droid project:

/Users/placide/Projects/AppName/Droid/C:\Users\rendy\Maven\xamarin-plugins\Geofence\Geofence\Geofence.Plugin.Android\GeofenceImplementation.cs: Error XA4204: Unable to resolve interface type 'Android.Gms.Common.Apis.GoogleApiClient/IConnectionCallbacks'. Are you missing an assembly reference? (XA4204) (AppName.Droid)

Will you help please ? Thanks,

pmdauv commented 7 years ago

I solved issue by creating a new solution and adding each project separately: PL, Droid and iOS.

pmdauv commented 7 years ago

I understood why an issue appears when I build the solution or Droid project. It seems that when I update the Xamarin.Android.Support packages after installing the geofence plugin there is an issue during build process. If I update packages before installing geofence plugin everything works fine. What will happen for a next packages update after installing geofence plugin?

ccastillo1 commented 7 years ago

Hey @pmdauv I'm having the same problem over here after update the google services, how did you solve it?

pmdauv commented 7 years ago

Hi,

Unfortunately it doesn't exist a best way to solve the issue. After updating google services it's unable to build Android projet when the geofence plugin is installed. The only way is to uninstall the plugin. There is a problem between the geofence plugin and the new google service releases. I hope the plugin creator is going to solve that issue.

Sorry to not help you.

2017-02-21 14:42 GMT+01:00 ccastillo1 notifications@github.com:

Hey @pmdauv https://github.com/pmdauv I'm having the same problem over here after update the google services, how did you solve it?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/domaven/xamarin-plugins/issues/23#issuecomment-281347509, or mute the thread https://github.com/notifications/unsubscribe-auth/AGAJWn1ayUmNL6QDyQeXOSMOO5KG6i-kks5reunbgaJpZM4MAJzm .

andresteves commented 7 years ago

Having this issue after updating GooglePlayServices to version 32.961.0.

xamarin-plugins\Geofence\Geofence\Geofence.Plugin.Android\GeofenceImplementation.cs: error XA4204: Unable to resolve interface type 'Android.Gms.Common.Apis.GoogleApiClient/IConnectionCallbacks'. Are you missing an assembly reference?

Any help would be awesome.

Thanks

joaocpaiva commented 7 years ago

Same here!

pmdauv commented 7 years ago

Hi,

Unfortunately it doesn't exist a best way to solve the issue. After updating google services it's unable to build Android projet when the geofence plugin is installed. The only way is to uninstall the plugin. There is a problem between the geofence plugin and the new google service releases. I hope the plugin creator is going to solve that issue.

Sorry.

2017-05-12 8:41 GMT+02:00 joaocpaiva notifications@github.com:

Same here!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/domaven/xamarin-plugins/issues/23#issuecomment-300996696, or mute the thread https://github.com/notifications/unsubscribe-auth/AGAJWutamWRyZqi3KSIirwRkrKTNV2DZks5r4_79gaJpZM4MAJzm .

avarnon commented 6 years ago

I was able to resolve this error by pulling the source code down locally, setting the target framework to Android 7.1 (Nougat), and updating the NuGet packages to latest.

pmdauv commented 6 years ago

Hi The only way right now is to uninstall the Geofence plugin. I was able to resolve this issue by using directly the source from the Android Geofence project (see https://github.com/domaven/xamarin-plugins).

pmdauv commented 6 years ago

Hi The only way right now is to uninstall the Geofence plugin. I was able to resolve this issue by using directly the source from the Android Geofence project (see https://github.com/domaven/xamarin-plugins).

2017-02-21 14:42 GMT+01:00 ccastillo1 notifications@github.com:

Hey @pmdauv https://github.com/pmdauv I'm having the same problem over here after update the google services, how did you solve it?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/domaven/xamarin-plugins/issues/23#issuecomment-281347509, or mute the thread https://github.com/notifications/unsubscribe-auth/AGAJWn1ayUmNL6QDyQeXOSMOO5KG6i-kks5reunbgaJpZM4MAJzm .

marcelo-g-simas commented 6 years ago

We submitted a couple pull requests that address this and the authors of this package released a new plugin that incorporate them. Try https://www.nuget.org/packages/Plugin.Geofence/, it is almost a complete drop in replacement with the exception of a namespace change and can be used in projects targeting API 27.