Whitelist `android/device/collectors/*` from Android Platform Types
` android/device/collectors/*` are from a user library instead pre-installed SDK, and therefore should be subject to normal desugar process instead core library desugaring process.
@@ -69,6 +69,7 @@ class CorePackageRenamer extends ClassRemapper {
!remapper.didSomething
|| !owner.startsWith("android/")
|| owner.startsWith("android/arch/")
+ || owner.startsWith("android/device/collectors/") // b/179812549
|| owner.startsWith("android/support/"),
"%s calls %s.%s%s which is not supported with core library desugaring. Please file "
+ "a feature request to support this method",
@@ -89,6 +90,7 @@ class CorePackageRenamer extends ClassRemapper {
|| !owner.startsWith("android/")
|| owner.startsWith("android/arch/")
|| owner.startsWith("android/car/")
+ || owner.startsWith("android/device/collectors/") // b/179812549
|| owner.startsWith("android/support/"),
"%s accesses %s.%s: %s which is not supported with core library desugaring. Please file "
+ "a feature request to support this field",
