Duplicate class android.support.v4.app.INotificationSideChannel found in modules classes?

前端 未结 6 1380
刺人心
刺人心 2020-11-29 05:54

I am developing a news app but I am getting following errors in from gradle console

(androidx.core:core:1.0.1) and classes.jar (com.android.support:support-c         


        
6条回答
  •  情书的邮戳
    2020-11-29 06:16

    Top-Master's answer only work if you can downgrade to a specific version. In my case, I have a React Native app and one of the libraries I was using had migrated to AndroidX. The previous version had issues with iOS, so I had to use the most recent version. What I had to do was:

    1. Migrate the Android project to AndroidX (Refactor > Migrate to AndroidX).
    2. Use jetify to convert node_module dependencies to AndroidX. For React Native 0.60 and above, jetify is run automatically, so you don't have to install this library.

提交回复
热议问题