#bogdan_error

1 messages ยท Page 1 of 1 (latest)

kindred badgerBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1395335479670341702

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

bright moat
proud ruin
#

๐Ÿ‘‹
You can exclude these library from one of the imports

bright moat
#

I've tried, It didn't help
implementation("com.stripe:stripe-android:20.28.3") {
exclude group: 'ca.amadis.agnos'
exclude group: 'com.whitecryption.securepin'
}
implementation("com.stripe:stripeterminal-taptopay:4.4.0") {
exclude group: 'ca.amadis.agnos'
exclude group: 'com.whitecryption.securepin'
}
implementation("com.stripe:stripeterminal-core:4.4.0") {
exclude group: 'ca.amadis.agnos'
exclude group: 'com.whitecryption.securepin'
}
And tried the same for Adyen lib

proud ruin
#

That means there is another lib is duplicated you need to exclude

#

what you can do is display the dependency tree and see what is the origin of the conflicted lib

bright moat
#

Dependency tree doesn't even have amadis and whitecryption, it seems because of they are not transitive.

proud ruin
#

It should display all lib, maybe you are not running it in the root module

kindred badgerBOT
bright moat
#

In the root, it contains all dependencies I have (it's a sample app) including stripe and adyen, but nothing about whitecryption or amadis

proud ruin
#

In the root, it contains all dependencies I have (it's a sample app) including stripe and adyen, but nothing about whitecryption or amadis
It's under com.adyen.ipp.tools:kernel-debug

#

Can you try excluding com.adyen.ipp.tools:kernel-debug from adyen ? I don't know what it does honestly, but it seems not critical based on its name

#

Can you try running these commands:

./gradlew app:dependencyInsight --dependency kernel-debug --configuration compileClasspath

./gradlew app:dependencyInsight --dependency stripeterminal-taptopay --configuration compileClasspath
bright moat
#

./gradlew app:dependencyInsight --dependency kernel-debug --configuration debugCompileClasspath

Task :app:dependencyInsight
com.adyen.ipp.tools:kernel-debug:3.7.9
Variant compile:
| Attribute Name | Provided | Requested |
|-------------------------------------------------|----------|------------|
| org.gradle.libraryelements | jar | |
| org.gradle.status | release | |
| org.gradle.category | library | library |
| org.gradle.usage | java-api | java-api |
| com.android.build.api.attributes.AgpVersionAttr | | 8.11.0 |
| com.android.build.api.attributes.BuildTypeAttr | | debug |
| org.gradle.jvm.environment | | android |
| org.jetbrains.kotlin.platform.type | | androidJvm |
Selection reasons:
- By constraint: version resolved in configuration ':app:debugRuntimeClasspath' by consistent resolution
- By ancestor

com.adyen.ipp.tools:kernel-debug:{strictly 3.7.9} -> 3.7.9
--- debugCompileClasspath

com.adyen.ipp.tools:kernel-debug:3.7.9
--- com.adyen.ipp:payment-tap-to-pay-debug:2.2.0
--- debugCompileClasspath

#

./gradlew app:dependencyInsight --dependency stripeterminal-taptopay --configuration debugCompileClasspath

Task :app:dependencyInsight
com.stripe:stripeterminal-taptopay:4.4.0
Variant compile:
| Attribute Name | Provided | Requested |
|-------------------------------------------------|----------|------------|
| org.gradle.libraryelements | jar | |
| org.gradle.status | release | |
| org.gradle.category | library | library |
| org.gradle.usage | java-api | java-api |
| com.android.build.api.attributes.AgpVersionAttr | | 8.11.0 |
| com.android.build.api.attributes.BuildTypeAttr | | debug |
| org.gradle.jvm.environment | | android |
| org.jetbrains.kotlin.platform.type | | androidJvm |
Selection reasons:
- By constraint: version resolved in configuration ':app:debugRuntimeClasspath' by consistent resolution

com.stripe:stripeterminal-taptopay:4.4.0
--- debugCompileClasspath

com.stripe:stripeterminal-taptopay:{strictly 4.4.0} -> 4.4.0
--- debugCompileClasspath

#

Excluding exclude group: 'com.adyen.ipp.tools', module: 'kernel-debug' helps to avoid errors with amadis. Whitecryption still persist.
To hide whitecryption error I can exclude group: 'com.adyen.ipp.tools', module: 'pin' but it just remove part of the adyen library...
it doesn't look like proper way.

debug - it's a ending for debug lib version, for release it will be the same just without 'debug'

proud ruin
#

I see, yeah probably you can't use both libs in this case

#

I think one workaround, is to use shadowing

#

com.github.johnrengelman.shadow

bright moat
#

Thank you, I'll take a look