当尝试向解析服务器发送请求时,它通常可以正常工作,但是对于S9设备,我会收到I / O失败错误消息。当设备上没有互联网连接时,通常会显示此消息。但是,我确保手机已连接到互联网并尝试使用wifi和4G。
parse-server版本:3.1.3 android解析:1.18.5
Parse.initialize(new Parse.Configuration.Builder(this)
.applicationId("")
.clientKey("")
.server("https://thisisatest.herokuapp.com/parse/") // https instead of http
.build()
);
在服务器URL中使用https而不是http修复了问题。