I'm trying to build my app on android with Cordova and the Wikitude AR plugin. It's working perfectly fine on iOS but once I attempt an android build, it gives me the following error:
* What went wrong:
Execution failed for task ':transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: org/apache/cordova/PermissionHelper.class
Removing and adding the platform is not an option. Any ideas what could be causing this?
Had to manually remove the plugin cordova-plugin-badge
and then cordova plugin remove cordova-plugin-compat --force
.
After I reinstalled cordova-plugin-compat@1.2.0
and my app built, seemed like the two plugins were tripping up on one another.