QuickBlox Android SDK中1.2不再在Android API 14日前运行 [英] QuickBlox Android SDK 1.2 isn't running anymore on Android API before 14
问题描述
QuickBlox(Android的SDK),不再被Android上运行的API 14日之前。
QuickBlox (Android SDK) isn't running anymore on Android API Before 14.
当我尝试创建一个使用QBAuth.createSession为QuickBlox会话(新QBCallbackImpl(){,它给这个错误:
When I try to create a session for QuickBlox using QBAuth.createSession(new QBCallbackImpl() {, it gives this error:
(javax.net.ssl.SSLPeerUnverifiedException:没有对方的证书)。
(javax.net.ssl.SSLPeerUnverifiedException: No peer certificate).
但奇怪的是在此之前跑!
The strange thing that it was running before!
我使用QuickBlox Android SDK中1.2.4,我应该迁移到SDK 2?但它仍然是测试版!
I'm using QuickBlox Android SDK 1.2.4, should I migrate to SDK 2? but it is still Beta!
推荐答案
这似乎是有使用QuickBlox的Android SDK 1.2的时候出了问题,强烈建议使用QuickBlox的Android SDK 2(但它仍然公测!)。
It seems that there is a problem when using QuickBlox Android SDK 1.2, highly recommended to use QuickBlox Android SDK 2 (but it still Beta!).
如果我们仍然需要使用QuickBlox Android SDK中1.2,我们可以解决,通过调用这个创建会话之前
If we still need to use QuickBlox Android SDK 1.2, we can work around that by calling this before creating the session
QBSettings.getInstance().setTransferProtocol(TransferProtocol.HTTP);
它的工作原理就像一个魅力。
It works like a charm.
这篇关于QuickBlox Android SDK中1.2不再在Android API 14日前运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!