我尝试为 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
Android 支持库和 Android 支持存储库已安装。
感谢您的帮助
EDIT:
我尝试更新 cordova 和 cordova-cli 但没有成功。
那个地点https://repo1.maven.org/maven2/com/android/support/
不再存在(404
)。所以maven配置似乎是问题所在。
I found GitHub 问题 https://github.com/driftyco/ionic-service-push-client/issues/22关于您遇到的相同问题,通过运行更新 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
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)