cordova-plugin-geofence icon indicating copy to clipboard operation
cordova-plugin-geofence copied to clipboard

Build error, even without code: cannot access AbstractSafeParcelable

Open ChristophRettinger opened this issue 8 years ago • 3 comments

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 avatar Nov 25 '16 22:11 ChristophRettinger

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.

ChristophRettinger avatar Nov 26 '16 14:11 ChristophRettinger

how you solve the issue ?

bigbossmaher avatar Apr 27 '17 02:04 bigbossmaher

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 ;)

jonas-l-b avatar Jun 23 '17 14:06 jonas-l-b