第一次用Android Studio开发。但在Android Studio运行时报错:
Could not resolve all dependencies for configuration ':app:_debugCompile'.
Could not find any version that matches com.android.support:appcompat-v7:15.+.但我的SDK Manager安装了该有的组件了啊,求大神帮我看看问题出现在哪里了?
再附上build.gradle文件内容:apply plugin: 'com.android.application'android {
compileSdkVersion 15
buildToolsVersion "24.0.0" defaultConfig {
applicationId "com.test.helloworld"
minSdkVersion 14
targetSdkVersion 15
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:15.+'
}
Could not resolve all dependencies for configuration ':app:_debugCompile'.
Could not find any version that matches com.android.support:appcompat-v7:15.+.但我的SDK Manager安装了该有的组件了啊,求大神帮我看看问题出现在哪里了?
再附上build.gradle文件内容:apply plugin: 'com.android.application'android {
compileSdkVersion 15
buildToolsVersion "24.0.0" defaultConfig {
applicationId "com.test.helloworld"
minSdkVersion 14
targetSdkVersion 15
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:15.+'
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货