使用最新版本的IDE。尝试使用android 2.2 API 10和2.3。
Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
> Could not find any version that matches com.android.support:appcompat-v7:10.+.
Versions that do not match:
23.1.1
23.1.0
23.0.1
23.0.0
22.2.1
+ 11 more
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/appcompat-v7/maven-metadata.xml
https://jcenter.bintray.com/com/android/support/appcompat-v7/
file:/C:/Users/user/AppData/Local/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/maven-metadata.xml
file:/C:/Users/user/AppData/Local/Android/sdk/extras/google/m2repository/com/android/support/appcompat-v7/maven-metadata.xml
file:/C:/Users/user/AppData/Local/Android/sdk/extras/google/m2repository/com/android/support/appcompat-v7/
Required by:
MyApplication33:app:unspecified
此外,我无法在构建时关闭我的IDE - 它会冻结。
答案 0 :(得分:0)
将compile('com.android.support:appcompat-v7:10.+')
替换为compile('com.android.support:appcompat-v7:23.1.1')
中的build.gradle
。并确保在Android SDK Manager中您的存储库是最新的(尤其是Google支持存储库)。
答案 1 :(得分:0)
请通过SDK Manager安装android支持库 并且请在build.gradle中确认您的依赖项。
dependencies {
compile 'com.android.support:appcompat-v7:23.1.1'
}
答案 2 :(得分:0)
确保您在gradle文件中使用正确的compileSdkVersion。见Unable to compile my android project