在我的Android工作室,我只能看到支持庫的版本25.0.0,但我的編譯SDK版本是23,當我嘗試添加com.android.support:recyclerview-v7:23.0.4
我收到一條錯誤消息,缺少支持庫V7 23
Error:(27, 13) Failed to resolve: com.android.support:recyclerview-v7:23.0.4
但根據SDK管理器,它顯示我已經安裝了所有的支持庫。
最重要的是,我無法找到菜單
File => Project Structure => Dependencies
這裏v7:23.0.4
庫截圖
我的問題
爲什麼我無法看到的版本V7支持庫:23.0.4?
如果支持庫沒有安裝怎麼就不能在我的SDK管理器中顯示?
EDIT 1
的build.gradle(Module.app)
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "appnotic.quicknotes"
minSdkVersion 18
targetSdkVersion 23
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
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'
compile 'com.android.support:appcompat-v7:25.0.2'
}
關於問題2,您看到的「已安裝」是存儲庫,而不是庫 – lelloman
@lelloman然後,我該如何安裝缺失的存儲庫?我還沒有找到它的任何選項 –
我不認爲你錯過了存儲庫,你可以發佈你的模塊build.gradle? – lelloman