【发布时间】:2018-11-26 05:54:15
【问题描述】:
在我的项目中添加依赖实现 'com.azoft.carousellayoutmanager:carousel:1.2.4' 时,Android Studio 抛出异常 Failed to resolve: recyclerview-v7.然后我尝试为 recyclerview 添加依赖项。仍然出现同样的错误。
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.someapp"
minSdkVersion 16
targetSdkVersion 27
versionCode 1
versionName "1.0"
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.google.firebase:firebase-crash:16.0.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.squareup.retrofit2:retrofit:2.1.0'
implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.3.1'
implementation 'com.commonsware.cwac:saferoom:0.4.1'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.android.support:cardview-v7:27.1.1'
}
apply plugin: 'com.google.gms.google-services'
【问题讨论】:
-
能不能贴一下日志猫的错误信息
-
我只得到这个 无法解决:gradle 日志中的 recyclerview-v7。
标签: android android-studio android-recyclerview android-gradle-plugin