美好的一天,
在尝试构建Android应用程序时,我在MacBook上遇到了问题 . 当我“离子cordova构建android”时,我得到以下错误:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve com.android.tools.build:gradle:2.2.3.
Required by:
project :
> Could not resolve com.android.tools.build:gradle:2.2.3.
> com/sun/org/apache/xerces/internal/impl/XMLEntityManager
我已经尝试在线搜索解决方案超过一周,但我仍然无法解决我的问题 . 我的iMac上有类似的设置,一切都运行良好 . 我删除并添加了很多次平台但仍然没有...这是我的离子信息:
@ ionic / cli-utils:1.9.2离子(离子CLI):3.9.2
全球套餐:
Cordova CLI : 7.0.1
本地包裹:
@ionic/app-scripts : 2.1.3
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 3.6.0
系统:
ios-deploy : 1.9.2
Node : v6.11.3
npm : 3.10.10
OS : macOS Sierra
Xcode : Xcode 8.3.3 Build version 8E3004b
提前致谢 .