skip to Main Content

I recently updated my studio to Arctic Fox and got an error in my project

Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.
Using insecure protocols with repositories, without explicit opt-in, 
is unsupported. Switch Maven repository 'maven3(http://dl.bintray.com/mobisystech/maven)' to redirect to a 
secure protocol (like HTTPS) or allow insecure protocols. 
See https://docs.gradle.org/7.0.2/dsl/org.gradle.api.artifacts.repositories.UrlArtifactRepository.html#org.gradle.api.artifacts.repositories.UrlArtifactRepository:allowInsecureProtocol for more details.

2

Answers


  1. Check your repositories in your build.gradle. Ideally they should point to an https domain.

    Example.

    repositories {
        maven {
            url "https://jitpack.io"
        }
    }
    

    If url only exists under http protocol, you can add allowInsecureProtocol property. See following example

    repositories {
        maven {
            url "http://oss.sonatype.org/content/repositories/snapshots"
            allowInsecureProtocol = true //add this line
        }
    }
    
    Login or Signup to reply.
  2. It works for me after adding allowInsecureProtocol = true into maven repository defined in C:Users<userid>.gradleinit.gradle file.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search