Android Stuido 出现 SSL peer shut down incorrectly的解决办法

在Android Studio运行项目中,会因为网络问题及权限问题,项目出现SSL peer shut down incorrectly的错误提示。

解决方案:

修改项目的build.gradle文件,如图

Android Stuido 出现 SSL peer shut down incorrectly的解决办法

Android Stuido 出现 SSL peer shut down incorrectly的解决办法分别添加  

maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
maven { url "https://jitpack.io" }

最好将 jcenter() 放到最后。

亲测可用。