Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cordova pruning error for android config.xml

When I run cordova build android I get the following error:

Error: Pruning at selector "widget" from "/Library/WebServer/Documents/app/app-name/platforms/android/res/xml/config.xml" went bad.

I have tried reinstalling the Android platform several times, but no luck.

I am using Cordova 6.1.1, Android 5.1.1 and have updated Android Studio to the latest Dev tools and SDK.

Anyone else experienced this problem? I can't find anything similar online.

like image 647
smj2393 Avatar asked Feb 06 '23 20:02

smj2393


1 Answers

If anyone else experiences this issue, I fixed it by:

  • Removing all platforms.
  • Removing all plugins
  • Update Cordova
  • Add all platforms
  • Add all plugins

Build Android should run successfully.

like image 51
smj2393 Avatar answered Feb 19 '23 20:02

smj2393