Android
文章平均质量分 66
麦克学IT
这个作者很懒,什么都没留下…
展开
-
AsyncHttp android-async-http Trust anchor for certification path not found.异常解决办法
尝试了网上几种方式,在Application里面加全局忽略校验的,都不行,还是会报这个证书错误,可能对于别的网络框架有用,但是对于AsyncHttp没用。通过对async-http的AsyncHttpClient 忽略https的证书校验(其实并不推荐,这样就失去了https的安全特性了)通过排查项目代码,发现之前没有做证书信赖验证。由于项目的https.bks证书不是正规的CA签发的证书,而是二级代理商等签发的证书,验证不通过造成的!因为服务器证书到期,运维更新了证书,结果出现了上述问题。原创 2023-03-01 14:22:06 · 727 阅读 · 0 评论 -
Failed to find '?attr/colorControlHighlight' in current theme.
Failed to find ‘?attr/colorControlHighlight’ in current theme.在使用android.support.design.widget.TabLayout包的时候,在XML编辑器的preview页面会显示红色叹号布局错误如下图所示:Render problemFailed to find ‘?attr/colorControlHighli...原创 2018-10-08 18:21:49 · 1285 阅读 · 0 评论