프로그래밍/Android
how to solve "ERROR: Cause: unable to find valid certification path to requested target"
즉흥
2019. 6. 5. 13:52
728x90
반응형
오랜만에 안드로이드 스튜디오에서 코딩할 일이 있어서 켰는데 아래와 같은 오류 메세지가 출력됐다.
"ERROR: Cause: unable to find valid certification path to requested target"
고민해봤는데, 별도의 인증서가 있는 내부망에서 그래들 서버로 접속하지 못해 생긴 오류라고 판단.
(이전에 python pip install이 안 됐던 이유랑 같음)
인증서를 (https 등) 사용하는 모든 코드를 찾아서 인증서를 사용하지 않도록 변경(https -> http)하였다.
build.gradle
allprojects { repositories { mavenCentral() jcenter{ url "http://jcenter.bintray.com/"} //google{ url "http://google.com/"} //google() //jcenter() } } |
gradle-wrapper.properties
#Wed Jun 05 13:33:49 KST 2019 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=http\://services.gradle.org/distributions/gradle-5.1.1-all.zip |
728x90
반응형