При попытке синхронизации файлов Gradle возникает следующая ошибка: ОШИБКА: не удалось разрешить: android.recyclerview: recyclerview: Затрагиваемые модули: приложение - PullRequest
1 голос
/ 23 октября 2019

Так что моей Android Studio не удалось разрешить RecyclerView. Я новичок в разработке Android, поэтому, пожалуйста, не стесняйтесь предоставить любой вклад, который вы найдете полезным. Я не уверен, что это ошибка, которую я совершаю в репозиториях, или ошибка версии.

app gradle:

android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
    applicationId "com.example.hasanat"
    minSdkVersion 21
    targetSdkVersion 29
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
 }
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'android.recyclerview:recyclerview::1.1.0'
//AndroidX
implementation 'androidx.cardview:cardview:1.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0-alpha03'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0-alpha03'

}

build gradle:

buildscript {
repositories {
    google()
    jcenter()

}
dependencies {
    classpath 'com.android.tools.build:gradle:3.5.0'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
 }
}

allprojects {
repositories {
    mavenCentral()
    google()
    jcenter()

 }
}

task clean(type: Delete) {
delete rootProject.buildDir
}

1 Ответ

0 голосов
/ 23 октября 2019

Да, игнорируй это. Я сделал проблему версии в представлении переработчика.

...