question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ThreeDSecure CardinalEnvironment NoClassDefFoundError: Failed resolution

See original GitHub issue

General information

  • SDK/Library version: 3.7.0
  • Environment: Sandbox
  • Android Version and Device: Google Pixel 2 with Android 10
  • Braintree dependencies: ‘com.braintreepayments.api:braintree:3.7.0’

Test card used: https://developers.braintreepayments.com/guides/3d-secure/testing-go-live/ruby “Successful Challenge Authentication” Visa

  • 4000000000001091
  • 01/20**
  • CVC: 123

Issue description

Right after nonce was received from the server the 3DSecure initialization fails.

val secureRequest = ThreeDSecureRequest().nonce(validation.cardNonce) .amount(validation.amount.toShortString(2)) .versionRequested(ThreeDSecureRequest.VERSION_2) ThreeDSecure.performVerification(brainTreeFragment, secureRequest)

SDK crashes: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/cardinalcommerce/cardinalmobilesdk/enums/CardinalEnvironment; at com.braintreepayments.api.ThreeDSecure.configureCardinal(ThreeDSecure.java:360) at com.braintreepayments.api.ThreeDSecure.access$100(ThreeDSecure.java:46) at com.braintreepayments.api.ThreeDSecure$4.onConfigurationFetched(ThreeDSecure.java:223) at com.braintreepayments.api.BraintreeFragment$14.run(BraintreeFragment.java:829) at com.braintreepayments.api.BraintreeFragment.postOrQueueCallback(BraintreeFragment.java:752) at com.braintreepayments.api.BraintreeFragment.waitForConfiguration(BraintreeFragment.java:821) at com.braintreepayments.api.ThreeDSecure.performVerification(ThreeDSecure.java:188) at com.braintreepayments.api.ThreeDSecure.performVerification(ThreeDSecure.java:162)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tsulokcommented, Oct 7, 2019

Hey @sestevens, thanks for getting back.

Yes the linked maven repository is listed under an other maven repository (jitpack) in the top level build gradle file.

repositories {
        google()
        jcenter()
        maven { url 'https://jitpack.io' }
        maven {
            url "https://cardinalcommerce.bintray.com/android"
            credentials {
                username 'braintree-team-sdk@cardinalcommerce'
                password '220cc9476025679c4e5c843666c27d97cfb0f951'
            }
        }
    }

I’ve checked and until version 3.5.0 everything works. However I have the same issue with 3.6.0

0reactions
kingargylecommented, Oct 22, 2019

The correct thing to do here is if your have a dependency, is make sure the POM file that is being generated and uploaded to maven central, specifies all the dependencies that are needed. This way they are automatically brought in. Otherwise people will keep running into this issue and have to try to find it in the docs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ViroCore: java.lang.NoClassDefFoundError: Failed resolution ...
I solved this issue. I added to my dependency just viro library, but I must add additionally both sdk-common.aar and core.aar which you...
Read more >
java.lang.NoClassDefFoundError: Failed resolution of: Lcom ...
After integrating SDK , I am getting the error while initializing orchestrator and error is below :- java.lang.NoClassDefFoundError: Failed ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found