Houssem Eddine 0 Newbie Poster

Hello everyone I have problem when I want to Add Project Dependency for my Palette's Components such as GridLayout, it tells me that :

"This operation requires the library androidx.gridlayout:gridlayout:+. Problem: Inconsistencies in the existing project dependencies found. Version incompatibility between: - com.google.android.material:material:1.9.0@aar and: - androidx.appcompat:appcompat-resources:1.6.1@aar With the dependency: - androidx.annotation::1.1.0 versus: - androidx.annotation::2.0.0 The project may not compile after adding this library. Would you like to add it anyway?"

In build.gradle (Module:app) I have :

dependencies {
    implementation 'androidx.appcompat:appcompat:1.6.1'
    implementation 'com.google.android.material:material:1.9.0'
    //implementation 'com.google.android.material:material:1.5.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.1.5'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.