Materialdrawer: Error:(33, 0) Could not get unknown property 'versions' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

Created on 23 Nov 2017  路  4Comments  路  Source: mikepenz/MaterialDrawer

When i add the dependency it gives the error
implementation("com.mikepenz:materialdrawer:6.0.2@aar") {
transitive = true
}
//required support lib modules
implementation "com.android.support:appcompat-v7:${versions.supportLib}"
implementation "com.android.support:recyclerview-v7:${versions.supportLib}"
implementation "com.android.support:support-annotations:${versions.supportLib}"
implementation "com.android.support:design:${versions.supportLib}"

Below is the logcat

Error:(33, 0) Could not get unknown property 'versions' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

Most helpful comment

just replace the placeholder with a precise version number

All 4 comments

How did you fix this?

can you please tell us how did you fix it ? i had the same issue today

just replace the placeholder with a precise version number

With the androidx implementations in 6.1.0-rc02, I tried to get things working thusly:

    ext {
        **androidxSupportVersion = '1.0.0-rc02'**
        supportLibVersion = '28.0.0-alpha1'
        androidVersion = '28.0.0'
    }

//required support lib modules
    implementation "androidx.appcompat:appcompat-v7:**${androidxSupportVersion}"**

However, it doesn't work. androidx version from https://mvnrepository.com/artifact/androidx.recyclerview/recyclerview .

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pranjal-joshi picture pranjal-joshi  路  3Comments

singhalavi picture singhalavi  路  4Comments

jd-alexander picture jd-alexander  路  4Comments

y2kshane picture y2kshane  路  4Comments

armoun picture armoun  路  3Comments