realm / realm-java

Realm is a mobile database: a replacement for SQLite & ORMs
http://realm.io
Apache License 2.0
11.45k stars 1.75k forks source link

SSL certificate #7744

Closed SergeyLaukhin closed 1 year ago

SergeyLaukhin commented 1 year ago

How frequently does the bug occur?

All the time

Description

Gradle project sync failed.

Stacktrace & log output

NotAfter: Sat Nov 26 03:59:59 AMT 2022

A problem occurred configuring root project 'android-app'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not resolve io.realm:realm-gradle-plugin:10.12.0-SNAPSHOT.
     Required by:
         project :
      > Could not resolve io.realm:realm-gradle-plugin:10.12.0-SNAPSHOT.
         > Unable to load Maven meta-data from https://jcenter.bintray.com/io/realm/realm-gradle-plugin/10.12.0-SNAPSHOT/maven-metadata.xml.
            > Could not get resource 'https://jcenter.bintray.com/io/realm/realm-gradle-plugin/10.12.0-SNAPSHOT/maven-metadata.xml'.
               > Could not GET 'https://jcenter.bintray.com/io/realm/realm-gradle-plugin/10.12.0-SNAPSHOT/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.0.2/userguide/build_environment.html#gradle_system_properties
                     > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
      > Could not resolve io.realm:realm-gradle-plugin:10.12.0-SNAPSHOT.
         > Unable to load Maven meta-data from https://dl.bintray.com/android/android-tools/io/realm/realm-gradle-plugin/10.12.0-SNAPSHOT/maven-metadata.xml.
            > Could not get resource 'https://dl.bintray.com/android/android-tools/io/realm/realm-gradle-plugin/10.12.0-SNAPSHOT/maven-metadata.xml'.
               > Could not GET 'https://dl.bintray.com/android/android-tools/io/realm/realm-gradle-plugin/10.12.0-SNAPSHOT/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.0.2/userguide/build_environment.html#gradle_system_properties
                     > Remote host terminated the handshake

* Exception is:
    ... 211 more
Caused by: org.gradle.internal.resource.transport.http.HttpRequestException: 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.0.2/userguide/build_environment.html#gradle_system_properties
    at org.gradle.internal.resource.transport.http.HttpClientHelper.performRequest(HttpClientHelper.java:128)
    ... 232 more
Caused by: javax.net.ssl.SSLHandshakeException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed

Can you reproduce the bug?

Yes, always

Reproduction Steps

No response

Version

10.12.0

What SDK flavour are you using?

Local Database only

Are you using encryption?

No, not using encryption

Platform OS and version(s)

android

Build environment

Android Studio version: 2021.2.1 Gradle version: 7.0.2