Closed dellisd closed 6 years ago
Does using Jetifier not rewrite the old package name to the new one?
I was under the impression Jetifier would work for most libraries, except if the library used an annotation processor.
Apparently not.
I'm still getting this error:
e: Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath: class nz.co.trademe.mapme.MapMeAdapter, unresolved supertypes: androidx.recyclerview.widget.ListUpdateCallback
I've also been able to reproduce this.
Rather than fixing this in MapMe I've filed a bug on the Android bug tracker, as this is the exact purpose of Jetifier: https://issuetracker.google.com/issues/112274081
Once AndroidX is stable we will migrate MapMe to use it, but until then Jetifier should be the solution to using it in a project that uses AndroidX.
This has now been fixed in AGP 3.2 RC01 💯
Since
MapMeAdapter
inheritsListUpdateCallback
from the legacy support library, the adapter cannot be used with androidX'sDiffUtil.DiffResult.dispatchUpdatesTo()
.