我尝试使用版本25.2.0的支持库 ,因此我可以使用CameraKit库。无法在Android Studio中安装存储库和同步项目
我已经拿到了最新的编译工具下载:
我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'
}
问题: 对于每一个支持-library我得到的问题:
Failed to resolve com.android.support:cardview-v7:25.2.0
如果我尝试点击安装知识库和同步项目没有任何反应。
我已遵循gradle file,例如,可能是我的错误?
更新支持库也 –
当你点击 “安装库和同步工程”,会发生什么? – CommonsWare
@CommonsWare没什么。当鼠标指针位于链接上时,它会更改为指示存在可点击的链接。点击后没有任何反应。我试过** File - > Infalidate caches/Restart **。不幸的是,这没有帮助 – jublikon