Received close_notify during handshake

Myth丶恋晨 2023-02-27 12:10 66阅读 0赞

问题存在原因:这是Android编译错误,jcenter里面的东西下载不了引起的。

问题解决:在项目的build.gradle文件中将jcenter()换成阿里的源,具体示例代码如下。修改之后再重新Sync Project即可。

  1. buildscript {
  2. ext.kotlin_version = '1.3.50'
  3. repositories {
  4. google()
  5. // jcenter()
  6. maven{ url'http://maven.aliyun.com/nexus/content/groups/public/' }
  7. maven{ url'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
  8. }
  9. dependencies {
  10. classpath 'com.android.tools.build:gradle:3.5.3'
  11. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  12. // NOTE: Do not place your application dependencies here; they belong
  13. // in the individual module build.gradle files
  14. }
  15. }
  16. allprojects {
  17. repositories {
  18. google()
  19. // jcenter()
  20. maven{ url'http://maven.aliyun.com/nexus/content/groups/public/' }
  21. maven{ url'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
  22. }
  23. }

发表评论

表情:
评论列表 (有 0 条评论,66人围观)

还没有评论,来说两句吧...

相关阅读