I'm trying to run a "first app" application in android studio 3.3. My connection is via proxy. When I try run the "first app", android studio show me the next error:
ERROR: Could not GET 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.71/kotlin-gradle-plugin-1.2.71.pom'. Received status code 407 from server: authenticationrequired
Enable Gradle 'offline mode' and sync project
I have setup my proxy in: "File/Settings -> HTTP Proxy" and tried "Check connection" button. This link "https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.71/kotlin-gradle-plugin-1.2.71.pom" is working fine.
I also uncheck box "Offline work" in "Settings/Build, Execution.../Gradle" and sync project again but it still show the same issue.
I only set up proxy at "File/Settings -> HTTP Proxy", is it enough? Any more places?
In "build.gradle" file has this content:
buildscript { ext.kotlin_version = '1.2.71' repositories { mavenCentral() google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.2.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { mavenCentral() google() jcenter() } } task clean(type: Delete) { delete rootProject.buildDir } How can I fix that error? Thanks.