Android Studio运行时报错:Could not resolve all dependencies for configuration ':app:_

幻欢子 2016-12-11 09:10:13
第一次用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.+'
}





...全文
7152 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
Rochelle_WT 2018-12-24
  • 打赏
  • 举报
回复
https://stackoverflow.com/questions/48365927/could-not-find-any-version-that-matches-com-android-supportappcompat-v727#comment83720551_48366078 链接里面有回答,亲测可用。
落雨尘封 2016-12-12
  • 打赏
  • 举报
回复
gradle不怎么会用,我猜可以这么改compile 'com.android.support:appcompat-v7:24.0.0'
Z_4545287 2016-12-12
  • 打赏
  • 举报
回复
换个版本的v7包试试

80,362

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧