Reputation: 39
I am trying to implement a cardView, where when the user presses the FAB, a cardView is created dynamically. However, when I put the following bit of code in the gradle dependencies, I get an error:
implementation 'com.android.support:cardview-v7:23.0.+'
implementation 'com.android.support:recyclerview-v7:23.0.+'
It says 'This support library should not use a different version (23) than the compileSdkversion 27.
Currently, my apk level is 16.
What's the problem?
Upvotes: 0
Views: 87
Reputation: 7669
Currently, you have used compileSdkversion 27
. So you need to update dependency to 27
.
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
Don't try to use +
sign for integrating dependency.
Upvotes: 0
Reputation: 109
Just replace with this dependency in your Gradle.build:
com.android.support:cardview-v7:27.1.1
com.android.support:recyclerview-v7:27.1.1
Upvotes: 1