[英]I/O failure with Android Nougat (7.0)
Im getting this error only with the android version 7.0 using Parse Android SDK. 我只在使用Parse Android SDK的android 7.0版中收到此错误。
With <7 and 7.1.1 its working nice, but with 7.0 the error is just I/O failure
retrieved but the query exception 使用<7和7.1.1可以正常工作,但是使用7.0时,错误只是检索到I/O failure
但是查询异常
Tried with parse-android 1.14.0
& 1.15.6
. 尝试使用parse-android 1.14.0
& 1.15.6
。
I have internet, because displaying a webview is working ok. 我有互联网,因为显示网络视图可以正常工作。
Any idea? 任何想法?
My parse query: 我的解析查询:
public static void getPatrocinadores(final APIResponseListener listener) {
ParseQuery<Patrocinador> parseQuery = ParseQuery.getQuery(API_PATROCINADOR);
parseQuery.whereEqualTo("visible", true);
parseQuery.findInBackground(new FindCallback<Patrocinador>() {
@Override
public void done(List<Patrocinador> objects, ParseException e) {
if (e == null) {
listener.onSuccess(objects);
} else {
listener.onError(e);
}
}
});
Interceptor log: 拦截器日志:
D/OkHttp: User-Agent: Parse Android SDK 1.15.6 (com.prueba.package/3) API Level 24
D/OkHttp: <-- HTTP FAILED: javax.net.ssl.SSLHandshakeException: Handshake failed
D/OkHttp: --> POST https://prueba.parse.com/1/classes/Patrocinador http/1.1
My solution: use the version 1.13.1 我的解决方案:使用版本1.13.1
If you dont want to change the version another solution here: 如果您不想更改版本,请在此处使用另一种解决方案:
Android 7 dosnt allow my letsencrypt SSL Android 7 Dosnt允许我的letsencrypt SSL
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.