#bogdan_error
1 messages ยท Page 1 of 1 (latest)
๐ 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.
Full error
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
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
Dependency tree doesn't even have amadis and whitecryption, it seems because of they are not transitive.
It should display all lib, maybe you are not running it in the root module
In the root, it contains all dependencies I have (it's a sample app) including stripe and adyen, but nothing about whitecryption or amadis
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
./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'
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
Thank you, I'll take a look