构建错误Ionic Android:构建因异常而失败

我尝试为 Android构建一个离子应用程序,我有这个错误
What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugCompile'.
   > Could not find any version that matches com.android.support:support-v4:+.
 Searched in the following locations:
     https://repo1.maven.org/maven2/com/android/support/support-v4/maven-Metadata.xml
     https://repo1.maven.org/maven2/com/android/support/support-v4/
 required by:
     :android:unspecified@H_502_3@ 
 

安装Android支持库和Android支持存储库.

谢谢您帮忙

编辑:

我尝试更新cordova和cordova-cli,但它没有用.

解决方法

位置https://repo1.maven.org/maven2/com/android/support/不再存在(404).所以maven配置似乎是个问题.

我发现a GitHub issue遇到了你遇到的同样问题,它通过运行更新SDK(你已经做过)并将Android平台读入Ionic项目来解决

# Update Android SDK
android list sdk
android update sdk --no-ui --filter extra

# Refresh Ionic Android configuration
ionic platform remove android
ionic platform add android@H_502_3@

相关文章

Android性能优化——之控件的优化 前面讲了图像的优化,接下...
前言 上一篇已经讲了如何实现textView中粗字体效果,里面主要...
最近项目重构,涉及到了数据库和文件下载,发现GreenDao这个...
WebView加载页面的两种方式 一、加载网络页面 加载网络页面,...
给APP全局设置字体主要分为两个方面来介绍 一、给原生界面设...
前言 最近UI大牛出了一版新的效果图,按照IOS的效果做的,页...