Program type already present: android.support.v4.os.ResultReceiver$MyResultReceiver

I have very similar problem and in my case solution is add in gradle.properties this two lines:

android.useAndroidX=true
android.enableJetifier=true

I hope it will help.


You can use ./gradlew tasks --all to find out which tasks you have. Among them there will be something like yourproject:dependencies, which you can run to get dependency tree like this:

./gradlew yourproject:dependencies

Try to MIGRATE to ANDROIDX from the following path in Android Studio:

(Refactor>Migrate to AndroidX...)