开着Charles,挂着梯子,编译就崩了!

sun.security.validator.ValidatorException: PKIX path building failed

看着这个让人头痛的报错,三天两头蹦出来,偏偏你还没有更值得办法.

首先关闭你的Charles或者其他抓包工具

File-Invadate Caches / Restart

接下来又是另一个错误了:read time out

        google()
        jcenter()

万里长城的锅,没办法,换国内镜像源

maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }

完事儿

Last modification:January 6th, 2020 at 05:07 pm
If you think my article is useful to you, please feel free to appreciate