I am trying to configure my android app to use Firebase Cloud Firestore. I also have dependencies on OKHttp3. Gradle will sync fine but I am unable to compile the app and ru
Going into the gradle.properties
file and adding this line:
android.enableR8=false
android.enableD8=false
I hope this works.
It turned out the problem was not related to OkHttp - it was related to the Dexer compiler in the new version of android studio (3.0.0 and above)
Going into the gradle.properties file and adding this line:
android.enableD8=false
solved my problem. The app now compiles normally
The comments are right - you should NOT do this. The problem turned out to be that the project had gradle dependencies conflicting with .jar files manually imported. If you do have this problem, check if you've not got: