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.
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 .
Most helpful comment
just replace the placeholder with a precise version number