Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

immersionbar 3.2.2 报错 #560

Open
jinlongwu opened this issue Aug 30, 2022 · 1 comment
Open

immersionbar 3.2.2 报错 #560

jinlongwu opened this issue Aug 30, 2022 · 1 comment

Comments

@jinlongwu
Copy link

Duplicate class com.gyf.immersionbar.BarConfig found in modules jetified-immersionbar-3.0.0-runtime (com.gyf.immersionbar:immersionbar:3.0.0) and jetified-immersionbar-3.2.2-runtime (com.geyifeng.immersionbar:immersionbar:3.2.2)
Duplicate class com.gyf.immersionbar.BarHide found in modules jetified-immersionbar-3.0.0-runtime (com.gyf.immersionbar:immersionbar:3.0.0) and jetified-immersionbar-3.2.2-runtime (com.geyifeng.immersionbar:immersionbar:3.2.2)
Duplicate class com.gyf.immersionbar.BarParams found in modules jetified-immersionbar-3.0.0-runtime (com.gyf.immersionbar:immersionbar:3.0.0) and jetified-immersionbar-3.2.2-runtime (com.geyifeng.immersionbar:immersionbar:3.2.2)
Duplicate class com.gyf.immersionbar.BarProperties found in modules jetified-immersionbar-3.0.0-runtime (com.gyf.immersionbar:immersionbar:3.0.0) and jetified-immersionbar-3.2.2-runtime (com.geyifeng.immersionbar:immersionbar:3.2.2)
Duplicate class com.gyf.immersionbar.BuildConfig found in modules jetified-immersionbar-3.0.0-runtime (com.gyf.immersionbar:immersionbar:3.0.0) and jetified-immersionbar-3.2.2-runtime (com.geyifeng.immersionbar:immersionbar:3.2.2)
Duplicate class com.gyf.immersionbar.Constants found in modules jetified-immersionbar-3.0.0-runtime (com.gyf.immersionbar:immersionbar:3.0.0) and jetified-immersionbar-3.2.2-runtime (com.geyifeng.immersionbar:immersionbar:3.2.2)
Duplicate class com.gyf.immersionbar.EMUI3NavigationBarObserver found in modules jetified-immersionbar-3.0.0-runtime (com.gyf.immersionbar:immersionbar:3.0.0) and jetified-immersionbar-3.2.2-runtime (com.geyifeng.immersionbar:immersionbar:3.2.2)
Duplicate class com.gyf.immersionbar.EMUI3NavigationBarObserver$1 found in modules jetified-immersionbar-3.0.0-runtime (com.gyf.immersionbar:immersionbar:3.0.0) and jetified-immersionbar-3.2.2-runtime (com.geyifeng.immersionbar:immersionbar:3.2.2)
Duplicate class com.gyf.immersionbar.EMUI3NavigationBarObserver$NavigationBarObserverInstance found in modules jetified-immersionbar-3.0.0-runtime (com.gyf.immersionbar:immersionbar:3.0.0) and jetified-immersionbar-3.2.2-runtime (com.geyifeng.immersionbar:immersionbar:3.2.2)
Duplicate class com.gyf.immersionbar.FitsKeyboard found in modules jetified-immersionbar-3.0.0-runtime (com.gyf.immersionbar:immersionbar:3.0.0) and jetified-immersionbar-3.2.2-runtime (com.geyifeng.immersionbar:immersionbar:3.2.2)
Duplicate class com.gyf.immersionbar.ImmersionBar found in modules jetified-immersionbar-3.0.0-runtime (com.gyf.immersionbar:immersionbar:3.0.0) and jetified-immersionbar-3.2.2-runtime (com.geyifeng.immersionbar:immersionbar:3.2.2)
Duplicate class com.gyf.immersionbar.ImmersionBar$1 found in modules jetified-immersionbar-3.0.0-runtime (com.gyf.immersionbar:immersionbar:3.0.0) and jetified-immersionbar-3.2.2-runtime (com.geyifeng.immersionbar:immersionbar:3.2.2)
Duplicate class com.gyf.immersionbar.ImmersionBar$2 found in modules jetified-immersionbar-3.0.0-runtime (com.gyf.immersionbar:immersionbar:3.0.0) and jetified-immersionbar-3.2.2-runtime (com.geyifeng.immersionbar:immersionbar:3.2.2)
Duplicate class com.gyf.immersionbar.ImmersionCallback found in modules jetified-immersionbar-3.0.0-runtime (com.gyf.immersionbar:immersionbar:3.0.0) and jetified-immersionbar-3.2.2-runtime (com.geyifeng.immersionbar:immersionbar:3.2.2)
Duplicate class com.gyf.immersionbar.ImmersionDelegate found in modules jetified-immersionbar-3.0.0-runtime (com.gyf.immersionbar:immersionbar:3.0.0) and jetified-immersionbar-3.2.2-runtime (com.geyifeng.immersionbar:immersionbar:3.2.2)
Duplicate class com.gyf.immersionbar.NavigationBarObserver found in modules jetified-immersionbar-3.0.0-runtime (com.gyf.immersionbar:immersionbar:3.0.0) and jetified-immersionbar-3.2.2-runtime (com.geyifeng.immersionbar:immersionbar:3.2.2)
Duplicate class com.gyf.immersionbar.NavigationBarObserver$1 found in modules jetified-immersionbar-3.0.0-runtime (com.gyf.immersionbar:immersionbar:3.0.0) and jetified-immersionbar-3.2.2-runtime (com.geyifeng.immersionbar:immersionbar:3.2.2)
Duplicate class com.gyf.immersionbar.NavigationBarObserver$NavigationBarObserverInstance found in modules jetified-immersionbar-3.0.0-runtime (com.gyf.immersionbar:immersionbar:3.0.0) and jetified-immersionbar-3.2.2-runtime (com.geyifeng.immersionbar:immersionbar:3.2.2)
Duplicate class com.gyf.immersionbar.NotchUtils found in modules jetified-immersionbar-3.0.0-runtime (com.gyf.immersionbar:immersionbar:3.0.0) and jetified-immersionbar-3.2.2-runtime (com.geyifeng.immersionbar:immersionbar:3.2.2)
Duplicate class com.gyf.immersionbar.OSUtils found in modules jetified-immersionbar-3.0.0-runtime (com.gyf.immersionbar:immersionbar:3.0.0) and jetified-immersionbar-3.2.2-runtime (com.geyifeng.immersionbar:immersionbar:3.2.2)
Duplicate class com.gyf.immersionbar.OnBarListener found in modules jetified-immersionbar-3.0.0-runtime (com.gyf.immersionbar:immersionbar:3.0.0) and jetified-immersionbar-3.2.2-runtime (com.geyifeng.immersionbar:immersionbar:3.2.2)
Duplicate class com.gyf.immersionbar.OnKeyboardListener found in modules jetified-immersionbar-3.0.0-runtime (com.gyf.immersionbar:immersionbar:3.0.0) and jetified-immersionbar-3.2.2-runtime (com.geyifeng.immersionbar:immersionbar:3.2.2)
Duplicate class com.gyf.immersionbar.OnNavigationBarListener found in modules jetified-immersionbar-3.0.0-runtime (com.gyf.immersionbar:immersionbar:3.0.0) and jetified-immersionbar-3.2.2-runtime (com.geyifeng.immersionbar:immersionbar:3.2.2)
Duplicate class com.gyf.immersionbar.RequestManagerRetriever found in modules jetified-immersionbar-3.0.0-runtime (com.gyf.immersionbar:immersionbar:3.0.0) and jetified-immersionbar-3.2.2-runtime (com.geyifeng.immersionbar:immersionbar:3.2.2)
Duplicate class com.gyf.immersionbar.RequestManagerRetriever$1 found in modules jetified-immersionbar-3.0.0-runtime (com.gyf.immersionbar:immersionbar:3.0.0) and jetified-immersionbar-3.2.2-runtime (com.geyifeng.immersionbar:immersionbar:3.2.2)
Duplicate class com.gyf.immersionbar.RequestManagerRetriever$Holder found in modules jetified-immersionbar-3.0.0-runtime (com.gyf.immersionbar:immersionbar:3.0.0) and jetified-immersionbar-3.2.2-runtime (com.geyifeng.immersionbar:immersionbar:3.2.2)
Duplicate class com.gyf.immersionbar.SpecialBarFontUtils found in modules jetified-immersionbar-3.0.0-runtime (com.gyf.immersionbar:immersionbar:3.0.0) and jetified-immersionbar-3.2.2-runtime (com.geyifeng.immersionbar:immersionbar:3.2.2)

    classpath 'com.android.tools.build:gradle:7.1.2'

ext.kotlin_version = '1.6.10'
distributionUrl=https://services.gradle.org/distributions/gradle-7.2-all.zip

组件化报这个错,com.gyf.immersionbar 和com.geyifeng.immersionbar 这个冲突,但是我只依赖了
// 基础依赖包,必须要依赖
implementation 'com.geyifeng.immersionbar:immersionbar:3.2.2'
// kotlin扩展(可选)
implementation 'com.geyifeng.immersionbar:immersionbar-ktx:3.2.2'

@jinlongwu
Copy link
Author

解决方案 configurations {
all*.exclude group: 'com.gyf.immersionbar'
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant