I had the same error today.
In my config.xml i was pointing to icon and screen images like this: "www/res/icon/android/drawable-ldpi-icon.png"
I my case the folder /res/icon didn't exists. I put all the images in the correct folders and the error was gone.
Hope this helps for you.
To fix it, add <preference name="phonegap-version" value="cli-6.3.1" /> in your config.xml under the </author> closing
Thanks, this works! Any idea why this is failing in the new version?
Hello I fixed it removing the engine tag:
yeah android 6.0.0 has some breaking changes especially a change in the default folder of icon resources (res/icon => res/mipmap) this may make some plugins not work anymore until they are updated.
if the problem persists and a plugin cannot be updated be sure to lock your phonegap version to a specific version as mentioned above so when our default is updated it doesnt affect your app.