Some Errors After Migration To Androidx
Solution 1:
try to change
sourceCompatibility JavaVersion.VERSION_1_6
targetCompatibility JavaVersion.VERSION_1_6
to
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
Solution 2:
This can be a gradle issue.
Consider deleting gradle cache and retrying.
Gradle cache is at C:\Users\yourUserName\.gradle\caches
(windows) or ~/.gradle/caches
(linux)
Note: If your area is under sanction, you must bypass this using proxy or VPN.
Solution 3:
At first, there is no need to inject the recyclerView's, CardView's and material libraries into the gradle file because in the android studio i.e. 3.4 and above all these libraries are already inserted by default. Just replace your this library -> implementation 'com.android.support:appcompat-v7:28.0.0' with implementation 'androidx.appcompat:appcompat:1.1.0' and plus, go into the gradle.properties file and add this line -> "android.useAndroidX=true" and your project will work fine. In my case it worked.
Post a Comment for "Some Errors After Migration To Androidx"