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?
Top comments (0)