This message was deleted.
# community-support
s
This message was deleted.
v
Which part is unclear?
n
From the error, I tried to allow insecure protocol but again i got the same error for maven 4
this is my build.gradle file // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { google() mavenCentral() } dependencies { classpath 'com.android.tools.buildG8.0.0' classpath 'com.google.gmsgoogle services4.3.15' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } apply from: "variables.gradle" allprojects { repositories { google() mavenCentral() } } task clean(type: Delete) { delete rootProject.buildDir }
i have gradle 8.3 and java 20
v
Yeah well, you probably have multiple unsafe repositories defined if you got a similar error after fixing the first
n
but the url of repo is same
v
Maybe you defined it multiple times?
no i didn't
even i am not able to findout where it is defined
it should be in this build.gradle file but there is no such url
v
even i am not able to findout where it is defined
Where did you allow the unsafe url then?
I have no idea, as I don't know your build and what you showed does not have it. My best guess is, that you apply some plugin that evilly adds that repository.
n
Copy code
maven {
    url "<http://maven.regulaforensics.com/RegulaDocumentReader>"
    allowInsecureProtocol = true
}
i have added this in my build.gradle file
v
Well that's useless
n
yes
v
You just add another Repository
That does not fix the existing bad repository
n
then how can i check what is going wrong?
v
Maybe you can get the problematic repository from
repositories
and fix up its settings. But actually you should find out which plugin is misbehaving and tell them to stop adding a repository unconditionally, that's extremely bad practice and prevents the plugin to be used in any environment where only internal repository must be used, besides that it makes the build incompatible with newer Gradle versions in this case