Ionic build android 失败 - 无法解析配置“:_debugCompile”的所有依赖项

Posted

技术标签:

【中文标题】Ionic build android 失败 - 无法解析配置“:_debugCompile”的所有依赖项【英文标题】:Ionic build android failed - Could not resolve all dependencies for configuration ':_debugCompile' 【发布时间】:2015-12-29 09:05:45 【问题描述】:

我已将 phonegap-plugin-push (http://docs.ionic.io/docs/push-from-scratch) 添加到我的项目中,然后在我构建/运行它之后,出现了错误。

我尝试了很多方法 (https://github.com/driftyco/ionic-service-push-client/issues/22) (SDK Manager unable to fetch content - Connection to https://dl-ssl.google.com refused),但没有什么能帮助我。

在我添加这个插件之前,我的项目很好。

【问题讨论】:

您是否尝试过错误提示的内容? 是的,但它得到了同样的错误。 【参考方案1】:

您可以在 yourApp\platforms\android 上设置文件 project.properties

您可以将cordova.system.library.1=com.android.support:support-v13:23+ 编辑为您的支持版本

【讨论】:

以上是关于Ionic build android 失败 - 无法解析配置“:_debugCompile”的所有依赖项的主要内容,如果未能解决你的问题,请参考以下文章

Ionic Build Android - build.gradle文件不断添加重复的编译行并导致构建失败

ionic build android failure - 任务 processDebugResources 执行失败

使用 CMD 行构建失败 --ionic cordova build android

JDK 1.8 在 ionic cordova build android 上的要求检查失败

Ionic build android 失败 - 无法解析配置“:_debugCompile”的所有依赖项

ionic cordova build --prod --release 失败并产生错误