cordova-plugin-geofence
cordova-plugin-geofence copied to clipboard
Build error, even without code: cannot access AbstractSafeParcelable
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
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.
how you solve the issue ?
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 ;)