我在AndroidStudio3.0.1中创建了一个新项目,设置了公司的代理设置,并添加了自叹证书、unser服务器。当我尝试构建时,会列出以下错误,然后生成失败。
错误:
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:appcompat-v7:26.1.0.
Could not resolve com.android.support:appcompat-v7:26.1.0.
Required by:
project :app
> Could not resolve com.android.support:appcompat-v7:26.1.0.
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.pom'.
> Could not GET 'https://dl.google.com/dl/android/maven2/com/android/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.pom'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> unable to find valid certification path to requested target有人能帮我吗?
发布于 2020-02-03 15:53:21
是的,我通过改变WiFi网络连接解决了这个问题。1.连接到其他或移动网络(使用热点)并重新连接到WiFi网络2.在膝上型计算机中重置wifi网络
https://stackoverflow.com/questions/47678240
复制相似问题