Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR: Failed to resolve: androidx.appcompat:design:1.1.0

when i implementation 'androidx.appcompat:design:1.1.0' code in build gradle(module app) it says ERROR: Failed to resolve: androidx.appcompat:design:1.1.0

i have try to change the implementation 'androidx.appcompat:appcompat:1.1.0' in appscompact version it again shows error

apply plugin: 'com.android.application'

android {
    compileSdkVersion 29
    buildToolsVersion "29.0.2"
    defaultConfig {
        applicationId "com.example.bottomnavigation"
        minSdkVersion 15
        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.1.0'
    implementation 'androidx.appcompat:design:1.1.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.2.0'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}

ERROR: Failed to resolve: androidx.appcompat:design:1.1.0 Show in Project Structure dialog Affected Modules: app

like image 490
Nageshwor Shah Avatar asked Sep 16 '19 12:09

Nageshwor Shah


2 Answers

To you Design Support Library for androidx you need to use

Use this

implementation 'com.google.android.material:material:1.0.0'

Instead of

implementation 'androidx.appcompat:design:1.1.0'
like image 154
AskNilesh Avatar answered Oct 26 '22 02:10

AskNilesh


The library androidx.appcompat:design doesn't exist.

Check the artifact mapping:

com.android.support:design  ->  com.google.android.material:material:1.0.0

You can find here the documentation of the Material components library.

like image 2
Gabriele Mariotti Avatar answered Oct 26 '22 01:10

Gabriele Mariotti