Lint TrustAllX509TrustManager issue with google-http-client

180 Views Asked by At

I have these 2 libraries to my project:

    api("com.google.api-client:google-api-client-android:2.2.0") {
        exclude group: 'org.apache.httpcomponents'
    }
    api("com.google.apis:google-api-services-calendar:v3-rev411-1.25.0") {
        exclude group: 'org.apache.httpcomponents'
    }

After I upgraded the AGP version to 7.4.2 and gradle to 7.5, lint start complaining, you can find the error below:

google-http-client-1.42.3.jar: Error: checkServerTrusted is empty, which could cause insecure network traffic due to trusting arbitrary TLS/SSL certificates presented by peers [TrustAllX509TrustManager]

Appreciate for any help here :)

0

There are 0 best solutions below