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

Could not resolve com.stripe:stripe-android:20.48.6 and Failed to list versions for com.stripe:financial-connections. #1904

Open
waleedasad23 opened this issue Aug 30, 2024 · 0 comments
Labels
needs triage Needs triage

Comments

@waleedasad23
Copy link

Describe the bug
I am getting an error when building my flutter project which uses the flutter_stripe package.

Here is the Error Message that I am getting.

`
Execution failed for task ':app:checkDevDebugAarMetadata'.

Could not resolve all files for configuration ':app:devDebugRuntimeClasspath'.
Could not resolve com.stripe:stripe-android:20.48.6.
Required by:
project :app
> Could not resolve com.stripe:stripe-android:20.48.6.
> Could not get resource 'https://jcenter.bintray.com/com/stripe/stripe-android/20.48.6/stripe-android-20.48.6.pom'.
> Could not GET 'https://repo1.maven.org/maven2/com/stripe/stripe-android/20.48.6/stripe-android-20.48.6.pom'.
> PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Failed to list versions for com.stripe:financial-connections.
> Unable to load Maven meta-data from https://repo.maven.apache.org/maven2/com/stripe/financial-connections/maven-metadata.xml.
> Could not HEAD 'https://repo.maven.apache.org/maven2/com/stripe/financial-connections/maven-metadata.xml'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.3.3/userguide/build_environment.html#gradle_system_properties
> PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
**Build Gradle**
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.stripe:stripe-android:20.48.6'
}
dependencies {
classpath "com.android.tools.build:gradle:7.2.2"
`

Expected behavior
The error should not appear when building the project.

Smartphone / tablet

  • Device: Pixel 5 Android API 31
  • Package version: ^9.5.0+1
  • Flutter version 3.7.9

Additional context
Add any other context about the problem here.

@waleedasad23 waleedasad23 added the needs triage Needs triage label Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Needs triage
Projects
None yet
Development

No branches or pull requests

1 participant