简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM