【发布时间】:2015-10-21 17:58:59
【问题描述】:
我尝试为 android 构建一个 ionic 应用程序,但出现此错误:
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
Android Support Library 和 Android support Repository 已安装。
感谢您的帮助
编辑:
我尝试更新cordova和cordova-cli,但没有成功。
【问题讨论】:
-
升级你的系统,看看有没有帮助。当前的 Cordova 工具 版本是 5.3.3。这是blog post that should help with the upgrade。
-
除非您在消息框中回复,否则我不知道您是否回复了。 Forums that support Cordova/Phonegap ------ Ionic forum
-
您能否在 SDK 管理器中安装 Android 支持库?
-
我已经用 Android Studio 安装了 SDK Manager。
标签: android cordova google-cloud-messaging ionic