"Using insecure protocols with repositories" error message when syncing Gradle on Android Studio

Viewed 3

I was trying to perform a Gradle sync on my Android Studio project and it generated the following error.

A problem occurred configuring project ':app'.  
> Could not resolve all dependencies for configuration ':app:classpath'.  
   > Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository 'maven2(http://localhost/)' to redirect to a secure protocol (like HTTPS) or allow insecure protocols. See https://docs.gradle.org/7.3.3/dsl/org.gradle.api.artifacts.repositories.UrlArtifactRepository.html#org.gradle.api.artifacts.repositories.UrlArtifactRepository:allowInsecureProtocol for more details.

Please advise. Have you seen this before? How did you fix this?

0 Answers
Related