Cant build demo app
svyd opened this issue · 2 comments
svyd commented
Hi, Juliano
thinking about modularization/componetization and found your talk.
Just tried to build your sample app and got the following errors.
Could you please advise what is wrong? Seems smth wrong on my side..
Android Studio Beta 3.6 Beta 4
Duplicate class android.support.v4.app.INotificationSideChannel found in modules classes.jar (androidx.core:core:1.1.0-rc02) and classes.jar (com.android.support:support-compat:27.0.0)
Duplicate class android.support.v4.app.INotificationSideChannel$Stub found in modules classes.jar (androidx.core:core:1.1.0-rc02) and classes.jar (com.android.support:support-compat:27.0.0)
Duplicate class android.support.v4.app.INotificationSideChannel$Stub$Proxy found in modules classes.jar (androidx.core:core:1.1.0-rc02) and classes.jar (com.android.support:support-compat:27.0.0)
Duplicate class android.support.v4.os.IResultReceiver found in modules classes.jar (androidx.core:core:1.1.0-rc02) and classes.jar (com.android.support:support-compat:27.0.0)
Duplicate class android.support.v4.os.IResultReceiver$Stub found in modules classes.jar (androidx.core:core:1.1.0-rc02) and classes.jar (com.android.support:support-compat:27.0.0)
Duplicate class android.support.v4.os.IResultReceiver$Stub$Proxy found in modules classes.jar (androidx.core:core:1.1.0-rc02) and classes.jar (com.android.support:support-compat:27.0.0)
Duplicate class android.support.v4.os.ResultReceiver found in modules classes.jar (androidx.core:core:1.1.0-rc02) and classes.jar (com.android.support:support-compat:27.0.0)
Duplicate class android.support.v4.os.ResultReceiver$1 found in modules classes.jar (androidx.core:core:1.1.0-rc02) and classes.jar (com.android.support:support-compat:27.0.0)
Duplicate class android.support.v4.os.ResultReceiver$MyResultReceiver found in modules classes.jar (androidx.core:core:1.1.0-rc02) and classes.jar (com.android.support:support-compat:27.0.0)
Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in modules classes.jar (androidx.core:core:1.1.0-rc02) and classes.jar (com.android.support:support-compat:27.0.0)
Go to the documentation to learn how to Fix dependency resolution errors.
avinash-savant commented
@svyd try out Android Studio > Refactor > Migrate to Android X... worked for me.
svyd commented
Thanks @avinash-savant
It works for me.
Closing