日常出入坑-Android之SSLHandshakeException

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了日常出入坑-Android之SSLHandshakeException相关的知识,希望对你有一定的参考价值。

参考技术A 前提:

1.第三方包,gradle引入

2.项目在上午可以正常运行,下午就包错,错误日志如下

Could not resolve com.mob:MobToolsMC:+. Required by: project :app > Failed to list versions for com.mob:MobToolsMC. > Unable to load Maven meta-data from https://mvn.mob.com/android/com/mob/MobToolsMC/maven-metadata.xml . > Could not HEAD ' https://mvn.mob.com/android/com/mob/MobToolsMC/maven-metadata.xml '. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

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

经过一天一夜的baidu+google,各种操作,无意中解决问题。

回忆、总结+记录下,应该是这两点:

1.证书导入,参考 Caused by:javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorException: https接口证书异常

最后,出个题目,大家巩固巩固基础,如下,打印什么?

以上是关于日常出入坑-Android之SSLHandshakeException的主要内容,如果未能解决你的问题,请参考以下文章

JS的那些坑

JS的那些坑

JS的那些坑

caffe日常坑系列之:undefined reference to symbol '_ZN2cv6String10deallocateEv'

Android App实战项目之使用OpenCV人脸识别实现找人功能(附源码和演示 超详细)

android踩坑记录之view.setVisiblity()