hms-push-clientdemo-android
hms-push-clientdemo-android copied to clipboard
Android studio引入依赖失败
公司的项目,AndroidStudio报了这个错,导致项目一直无法运行,有没有大神指点一下如何解决? A problem occurred configuring root project 'src'.
Could not resolve all artifacts for configuration ':classpath'. Could not resolve com.huawei.agconnect:agcp:1.7.0.300. Required by: project : > Could not resolve com.huawei.agconnect:agcp:1.7.0.300. > Could not get resource 'https://developer.huawei.com/repo/com/huawei/agconnect/agcp/1.7.0.300/agcp-1.7.0.300.pom'. > Could not GET 'https://developer.huawei.com/repo/com/huawei/agconnect/agcp/1.7.0.300/agcp-1.7.0.300.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
- Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights.
。。。。。。
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:396) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:355) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:394) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) at org.gradle.internal.resource.transport.http.HttpClientHelper.performHttpRequest(HttpClientHelper.java:132) at org.gradle.internal.resource.transport.http.HttpClientHelper.performHttpRequest(HttpClientHelper.java:109) at org.gradle.internal.resource.transport.http.HttpClientHelper.executeGetOrHead(HttpClientHelper.java:98) at org.gradle.internal.resource.transport.http.HttpClientHelper.performRequest(HttpClientHelper.java:89) ... 213 more Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target ... 228 more Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target ... 228 more