我在使用 Android Studio 时遇到了一些小问题:
Failed to resolve: 'com.android.support:appcompat-v7:16.+'
我也尝试安装存储库但出现另一个错误。
apply plugin: 'com.android.application'
android {
compileSdkVersion 16
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "p11zt.futebol24"
minSdkVersion 16
targetSdkVersion 16
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
} }
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:16.+' }
最佳答案
将编译 sdk 更改为 23 试试这个
compileSdkVersion 23
targetSdkVersion 23
并使用 support:appcompat
compile 'com.android.support:appcompat-v7:23.0.0'
关于android - 无法解析 : 'com.android.support:appcompat-v7:16.+' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34372656/