在使用Jetpack架构Room创建数据库时出现编译错误,如下:
Received close_notify during handshake
解决方法:
在build.gradle中进行以下操作
注释部分 // jcenter()
替换为以下代码:
maven{ url'http://maven.aliyun.com/nexus/content/groups/public/' }
maven{ url'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
sync之后可正常编译运行。
本文介绍了解决在使用Jetpack架构Room创建数据库时遇到的编译错误的方法。通过修改build.gradle文件中的依赖源,可以有效解决Receivedclose_notifyduringhandshake的问题,确保项目顺利编译运行。
1476

被折叠的 条评论
为什么被折叠?



