简体   繁体   中英

Android Studio behind the proxy

I know this type of questions is around since many years and I tried each and every solution with no luck.

I am trying to setup development environment with Android Studio with Flutter. I am keep getting error regarding the certificate.

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I tried to change https to http in the gradle prop file and also tried to change from jcenter() to maven but it is not working. Also I tried to import the certificate using the KeyStore Explorer , it says successfully imported but throwing same error when I am trying to run the project.

What went wrong: A problem occurred configuring root project 'android'. Could not resolve all artifacts for configuration ':classpath'. Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71. Required by: project: Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71. Could not get resource ' https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.71/kotlin-gradle-plugin-1.2.71.pom '. Could not GET ' https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.71/kotlin-gradle-plugin-1.2.71.pom '. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.11. Required by: project: > com.android.tools.build:gradle:3.3.0 project: > com.android.tools.build:gradle:3.3.0 > com.android.tools.build:builder:3.3.0 project: > com.android.tools.build:gradle:3.3.0 > com.android.tools.analytics-library:shared:26.3.0 project: > com.android.tools.build:gradle:3.3.0 > com.android.tools.lint:lint-gradle-api:26.3.0 project: > com.android.tools.build:gradle:3.3.0 > Z 4D236D9A2D102C5FE6AD1C50DA4BEC50Z.android.tools.build:gradle-api:3.3.0 project: > com.android.tools.build:gradle:3.3.0 > androidx.databinding:databinding-compiler-common:3.3.0 project: > com.android.tools.build:gradle:3.3.0 > com.android.tools.build:builder:3.3.0 > com.android.tools:sdk-common:26.3.0 project: > com.android.tools.build:gradle:3.3.0 > com.android.tools.build:builder:3.3.0 > com.android.tools:common:26.3.0 project: > com.ZC31B32364CE1 9CA8FCD150A417ECCE58Z.tools.build:gradle:3.3.0 > com.android.tools.build:builder:3.3.0 > com.android.tools.build:manifest-merger:26.3.0 project: > com.android.tools.build:gradle:3.3.0 > com.android.tools.build:builder:3.3.0 > com.android.tools.analytics-library:tracker:26.3.0 project: > com.android.tools.build:gradle:3.3.0 > com.android.tools.build:builder:3.3.0 > com.android.tools:sdklib:26.3.0 > com.ZC31B32364CE19CA 8FCD150A417ECCE58Z.tools:repository:26.3.0 Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.11. Could not get resource ' https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.11/kotlin-stdlib-jdk8-1.3.11.pom '. Could not GET ' https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.11/kotlin-stdlib-jdk8-1.3.11.pom '. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Could not resolve org.ow2.asm:asm:6.0.

I talked with my admin team and they are asking for which URLs they need to white list in order to make the flutter work. Let me know if you know what to be white listed.

If you're behind a proxy at work, your Server Team may be blocking certain file types. That's the case for me as I don't have any of these issues when working from an outside line.

Try copying and pasting the link into a browser and look at the error message.

Alternatively, you could try emailing your Server Team and have them open it up for you (temporarily).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM