braintree / android-card-form

A ready-made card form layout that can be included in your Android app, making it easy to accept credit and debit cards.
MIT License
364 stars 126 forks source link

Could not get resource aar file. Can be server sertificate issue or something else, dont know? #46

Closed parthvora25 closed 6 years ago

parthvora25 commented 6 years ago

Please take a look at the log here. This issue is coming to me when i am trying to add dependency of your library in my demo app. How to solve it? I am using android studio 3.1.3

Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. Could not determine artifacts for com.braintreepayments:card-form:3.3.0 Could not get resource 'https://jcenter.bintray.com/com/braintreepayments/card-form/3.3.0/card-form-3.3.0.aar'. Could not HEAD 'https://jcenter.bintray.com/com/braintreepayments/card-form/3.3.0/card-form-3.3.0.aar'. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target unable to find valid certification path to requested target

Epreuve commented 6 years ago

Hey @parthvora25

This sounds like an issue with Gradle being unable to talk to jcenter for some reason, are you behind a proxy? If you are, you'll need to setup Gradle to properly account for that, which is outlined in their documentation here.

If you're not behind a proxy, one might be accidentally configured. Double check your Gradle files for any erroneous proxy configurations and remove them. Alternatively, you can try running ./gradlew installDebug --info --debug --stacktrace and searching the output for proxyHost to determine where it is being set.

This seems like an issue not with card-form, but with your setup, so our troubleshooting will be limited at best.

parthvora25 commented 6 years ago

Hi @Epreuve , There are no proxies set up in my android studio settings as well as in the gradle.properties file. I am trying to download any of the sdk aar files by applying the url "implementation 'com.braintreepayments:card-form:3.3.0'" in gradle and none of them are working. All of them are giving this error. So i guess it can be internet issue, but i am using the internet at the same time. So what can be it?

Epreuve commented 6 years ago

@parthvora25 Are you able to click on https://jcenter.bintray.com/com/braintreepayments/card-form/3.3.0/card-form-3.3.0.aar in your browser and get a download prompt?

parthvora25 commented 6 years ago

Sorry for this late. Issue is solved for me. It was internet issue only. Now it is downloaded and i am able to work with it. I will close this issue. Still thanks for helping and yes i am getting a download prompt.