When I run cordova build android
I get the following error:
当我运行cordova构建android时,我得到的错误是:
Error: Pruning at selector "widget" from "/Library/WebServer/Documents/app/app-name/platforms/android/res/xml/config.xml" went bad.
错误:从“”/Library/WebServer/Documents/app/app-name/platform /android/res/xml/config中删除选择器“widget”。xml”坏了。
I have tried reinstalling the Android platform several times, but no luck.
我试过几次重新安装Android平台,但没有成功。
I am using Cordova 6.1.1, Android 5.1.1 and have updated Android Studio to the latest Dev tools and SDK.
我使用的是Cordova 6.1.1、Android 5.1.1,并将Android Studio更新为最新的开发工具和SDK。
Anyone else experienced this problem? I can't find anything similar online.
还有人遇到过这个问题吗?我在网上找不到类似的东西。
1 个解决方案
#1
5
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.
构建Android应该成功运行。
#1
5
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.
构建Android应该成功运行。