При попытке добавить реализацию 'com.android.support:cardview-v7:27.1.1' в мой build.gradle (приложение) я получаю следующие ошибки:
Unable to resolve dependency for ':app@debug/compileClasspath': Could not
resolve com.android.support:cardview-v7:27.1.1.
Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath':
Could not resolve com.android.support:cardview-v7:27.1.1.
Unable to resolve dependency for ':app@debugUnitTest/compileClasspath':
Could not resolve com.android.support:cardview-v7:27.1.1.
Unable to resolve dependency for ':app@release/compileClasspath': Could not
resolve com.android.support:cardview-v7:27.1.1.
Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath':
Could not resolve com.android.support:cardview-v7:27.1.1.
ВотМой класс приложения:
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 27
defaultConfig {
applicationId "afinal.recipe.p.recipe1"
minSdkVersion 22
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
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.3'
implementation 'com.android.support:support-media-compat:27.1.1'
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.android.support:design:27.1.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-
core:3.0.2'
implementation 'com.google.firebase:firebase-auth:16.0.1'
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.firebase:firebase-storage:16.0.1'
implementation 'com.google.firebase:firebase-auth:16.0.1'
implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.github.bumptech.glide:glide:4.8.0'
implementation 'de.hdodenhof:circleimageview:3.0.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.android.support:cardview-v7:27.1.1'
}
apply plugin: 'com.google.gms.google-services'
И мой проект:: 1007 *
// Top-level build file where you can add configuration options common to
all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:4.0.1'
// NOTE: Do not place your application dependencies here; they
belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven {
url "https://maven.google.com"
}
mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Я уже застрял на этом некоторое время и безуспешно пробовал различные решения, такие как обеспечениеавтономный режим не проверяется и изменяется
apply plugin: 'com.android.application'
на:
apply plugin: 'com.android.library'
и, без успеха, удаляется:
applicationId "afinal.recipe.p.recipe1"
Заранее благодарен за любую помощь, будет принята с благодарностью.