2015-06-21 97 views
1

我是android studio的新手。我创建了Android工作室一个新的项目,当我要运行它,我得到这个错误:在android studio中创建新项目时出错

https://jcenter.bintray.com/com/android/support

令我惊讶的是,我打开这个链接
Error:A problem occurred configuring project ':app'. 
> Could not resolve all dependencies for configuration ':app:_debugCompile'. 
    > Could not find com.android.support:appcompat-v7:21.+ 
Searched in the following locations: 
    https://jcenter.bintray.com/com/android/support/appcompat-v7/21/appcompat-v7-21.pom 
    https://jcenter.bintray.com/com/android/support/appcompat-v7/21/appcompat-v7-21.jar 
Required by: 
    myappname:app:unspecified 

一件事

但这个链接是不正确的!

这个错误的原因是什么? 我已经安装了Android的支持库:

enter image description here

+0

你能在你的build.gradle文件编辑? – hellyale

+0

http://stackoverflow.com/questions/19621941/android-studio-could-not-find-any-version-that-matches-com-android-supportappco – hellyale

+0

是的,我可以。但为什么?! –

回答

2

转至SDK管理器并安装“附加| Android的支持库”

+1

您需要Android支持**存储库**,而不仅仅是Android支持_Library_。 – hungryghost

相关问题