cowbell / cordova-plugin-geofence

Geofencing plugin for cordova
Apache License 2.0
264 stars 318 forks source link

Build error, even without code: cannot access AbstractSafeParcelable #191

Open ChristophRettinger opened 7 years ago

ChristophRettinger commented 7 years ago

On adding the plugin to my project it immediately does not build anymore, even without putting any code into it.

I am using ionic 2 rc3 with android as only platform, android SDK 24, just updated all packages in SDK manager, JDK 1.8.0_111

This is my troublesome result:

:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

[...]\platforms\android\src\plugin\google\maps\PluginUtil.java:135: error: cannot access AbstractSafeParcelable

    Builder builder = LatLngBounds.builder();
                                  ^
  class file for com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable not found

Note: Some input files use or override a deprecated API.

:compileDebugJavaWithJavac FAILED

regards

ChristophRettinger commented 7 years ago

The problem occurs only in combination with the following plugin:

ionic plugin add https://github.com/mapsplugin/cordova-plugin-googlemaps

it works alone, the above mentioned plugin works alone, but together the issue the before mentioned error.

bigbossmaher commented 7 years ago

how you solve the issue ?

jonas-l-b commented 7 years ago

This issue can be solved by manually configuring all google play services to version 9.8.0 in the different plugin.xml files. After that you need to rm and add the android platform. This also goes for the google analytics or location accuracy plugin for instance ;)