当使用Parse API时,KnoxVpnUidStorageknoxVpnSupported API值返回错误

您好我是Android的newby,并尝试使用parse Api 。 在logcat中得到以下错误。

这是我的代码:

  ParseQuery<User> query = ParseQuery.getQuery("User"); query.whereEqualTo("phone", phone); try { List<User> all = query.find(); Log.v("Size of users are",all.size()+""); if (all.size() != 0) { foundUser = true; a = all.get(0); } } catch (ParseException e) { e.printStackTrace(); } 

这是我的logcat中的错误:

 KnoxVpnUidStorageknoxVpnSupported API value returned is false com.parse.ParseRequest$ParseRequestException: i/o failure 02-11 17:11:57.871 16766-17225/com.parse.starter W/System.err: at com.parse.ParseRequest.newTemporaryException(ParseRequest.java:372) 02-11 17:11:57.871 16766-17225/com.parse.starter W/System.err: at com.parse.ParseRequest$2.then(ParseRequest.java:198) 02-11 17:11:57.871 16766-17225/com.parse.starter W/System.err: at com.parse.ParseRequest$2.then(ParseRequest.java:190) 02-11 17:11:57.871 16766-17225/com.parse.starter W/System.err: at bolts.Task$14.run(Task.java:796) 02-11 17:11:57.871 16766-17225/com.parse.starter W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 02-11 17:11:57.871 16766-17225/com.parse.starter W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. 02-11 17:11:57.871 16766-17225/com.parse.starter W/System.err: at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:340) 02-11 17:11:57.871 16766-17225/com.parse.starter W/System.err: at android.net.SSLCertificateSocketFactory.verifyHostname(SSLCertificateSocketFactory.java:241) 

请帮助我如何解决这个问题。 我在三星s6设备上运行代码。

Solutions Collecting From Web of "当使用Parse API时,KnoxVpnUidStorageknoxVpnSupported API值返回错误"