android config.xml的Cordova修剪错误 [英] Cordova pruning error for android config.xml

查看:139
本文介绍了android config.xml的Cordova修剪错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行cordova build android时,出现以下错误:

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.

我已经尝试过多次重新安装Android平台,但是没有运气.

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

我正在使用Cordova 6.1.1,Android 5.1.1,并将Android Studio更新为最新的Dev工具和SDK.

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:

  • 删除所有平台.
  • 删除所有插件
  • 更新科尔多瓦
  • 添加所有平台
  • 添加所有插件

构建Android应该成功运行.

Build Android should run successfully.

这篇关于android config.xml的Cordova修剪错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆