【发布时间】:2017-09-15 16:08:28
【问题描述】:
我正在尝试使用 25.2.0 版本的支持库 这样我就可以使用CameraKit 库了。
我已经下载了最新的构建工具:
我的 gradle 文件:
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion '25.0.2'
defaultConfig {
applicationId "com.sample.myapp"
minSdkVersion 21
targetSdkVersion 25
versionCode 1
versionName "1.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
maven {
url "https://jitpack.io"
}
mavenCentral()
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
testCompile 'junit:junit:4.12'
// Google libraries
compile 'com.android.support:appcompat-v7:25.2.0'
compile 'com.android.support:design:25.2.0'
compile 'com.android.support:support-v4:25.2.0'
compile 'com.google.android.gms:play-services-vision:10.0.1'
compile 'com.android.volley:volley:1.0.0'
// Third party libraries
compile 'com.flurgle:camerakit:0.9.17'
compile 'com.android.support:recyclerview-v7:25.2.0'
compile 'com.android.support:cardview-v7:25.2.0'
}
问题: 对于每个支持库,我都会遇到问题:
Failed to resolve com.android.support:cardview-v7:25.2.0
如果我尝试点击安装存储库并同步项目,则什么也没有发生。
我以gradle file 为例。会不会是我的错?
【问题讨论】:
-
也更新支持库
-
当你点击“Install Repository and sync project”时,会发生什么?
-
@CommonsWare 什么都没有。当鼠标指针悬停在链接上时,它会更改以指示存在可单击的链接。点击后没有任何反应。我已经尝试过文件 -> Infalidate caches / Restart。不幸的是,这没有帮助
-
如果您在 SDK 工具选项卡中向下滚动(显示在您的问题中),您应该会看到 Android 存储库的条目。它是否表明您拥有最新版本?
-
Android 支持存储库已下载 47.0.0 版?我在帖子中添加了屏幕截图。
标签: android android-studio gradle android-support-library build-tools