Which plugins do you have installed?
Do you have the versions of the plugins pinned? or you always install latest available?
Probably some plugin got updated and broke your build
Same issue here. And same situation, yesterday it was fine.
For me it happens if both of this plugins are included:
- phonegap-plugin-push 2.0.0
- cordova-plugin-mauron85-background-geolocation 3.0.0-alpha.14
If i remove either of them - build is fine.
today I had the same problem. Yesterday all was fine, today I got the same error as you.
For me I was able to fix it by removing the following line from project.properties:
By trial and error we've learned that the phonegap-plugin-push pinned at version 2.1.2 seems to cause the error.
We have yet to test if updating the version to 2.2.0 makes a difference.
In the past I have also had a lot of trouble with it....it's on my list of plugins of hell
We have tried updating phonegap-plugin-push to 2.1.3 which resulted in the same error.
To elaborate on andy4296881's observations this error fails with the following:
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/v13/view/DragAndDropPermissionsCompat.class
This may relate to andy4296881's note that removing:
would fix his issues.
When building with phonegap-plugin-push 2.2.0 the build still fails but with a different error:
Installing "phonegap-plugin-push" at "2.2.0" for android
Are the last lines in the build log.
We seem to have a solution and further elaborations:
With the release of the phonegap-push-plugin 2.2.1that seeks to fix issue #2243 as described here https://github.com/phonegap/phonegap-plugin-push/issues/2243 we have been able to build again with phonegap cli-7.1.0.
However - we have successfully been able to build with phonegap cli-7.0.1 and phonegap-push-plugin 2.1.3 as well.
What doesn't make sense is that at the time we started experiencing the issue we had not made any updates to any plugins or dependencies. We had been running on cli-7.1.0 with phonegap-push-plugin 2.1.3 for a while with no problems whatsoever.
Hope this helps anyone who has been experiencing this issue.