Status Update
Comments
ha...@gmail.com <ha...@gmail.com> #2
I have the same problem for okHttp "com.squareup.okhttp3:okhttp:3.10.0" (and anko and some other really important libs).
uc...@google.com <uc...@google.com> #4
Merging in to similar issue 79642238 .
Description
- com.android.tools.build:gradle:3.2.0-alpha17
- androidx:1.0.0-alpha3
- com.squareup.retrofit2:converter-gson:2.4.0
- com.squareup.retrofit2:retrofit:2.4.0
I was trying to refactor my Kotlin project to use Androidx components but I kept getting this compilation error with the package retrofit2 (and any classes under it) not being found. When I set android.enableJetifier to false in gradle.properties, I don't get the compilation error anymore.
One thing to note is if the class importing Retrofit is written in Java, Jetifier can compile the project with no issues even if android.enableJetifier is set to true. I've attached a minimal reproduction of this bug with the Kotlin and Java-equivalent classes.