Unable to remove phonegap-plugin-push

Whenever I run ionic plugin remove phonegap-plugin-push
It returns
Uninstalling phonegap-plugin-push from android Uninstalling phonegap-plugin-push from ios Error: Cannot read property 'buffer' of undefined
How can I resolve this? Its not letting me uninstall it, and it breaks the build.
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:preDexArmv7Debug’.

java.lang.IllegalArgumentException: Source /home/damian/Dropbox/ultimateguide-app1/platforms/android/build/intermediates/pre-dexed/armv7/debug/classes-b5c185c241b23fb846944cf73b4169f91064b336.jar and destination /home/damian/Dropbox/ultimateguide-app1/platforms/android/build/intermediates/pre-dexed/armv7/debug/classes-b5c185c241b23fb846944cf73b4169f91064b336.jar must be different


I’ve been hitting this as well with my custom plugin. I generally find that removing the entry for the plugin from package.json and doing

$ ionic state refresh

works pretty well.

It’s a bit annoying, though, since refreshing state takes a lonnng time.

@EffakT how did you solve it, i am having the same problem?