初始化代码为——
AVOSCloud.setLogLevel(AVLogger.Level.DEBUG);
// 提供 this、App ID、App Key、Server Host 作为参数
// 注意这里千万不要调用 cn.leancloud.core.AVOSCloud 的 initialize 方法,否则会出现 NetworkOnMainThread 等错误。
AVOSCloud.initialize(this, xxx);
域名为——
https://api.54ki.cn
错误日志——
2020-08-31 14:58:42.082 9311-9311/? W/System.err: cn.leancloud.AVException: Handshake failed
2020-08-31 14:58:42.082 9311-9311/? W/System.err: at cn.leancloud.utils.ErrorUtils.propagateException(ErrorUtils.java:42)
2020-08-31 14:58:42.082 9311-9311/? W/System.err: at cn.leancloud.core.StorageClient$1.apply(StorageClient.java:68)
2020-08-31 14:58:42.082 9311-9311/? W/System.err: at cn.leancloud.core.StorageClient$1.apply(StorageClient.java:65)
2020-08-31 14:58:42.082 9311-9311/? W/System.err: at io.reactivex.internal.operators.observable.ObservableOnErrorNext$OnErrorNextObserver.onError(ObservableOnErrorNext.java:91)
2020-08-31 14:58:42.082 9311-9311/? W/System.err: at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.checkTerminated(ObservableObserveOn.java:281)
2020-08-31 14:58:42.082 9311-9311/? W/System.err: at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.drainNormal(ObservableObserveOn.java:172)
2020-08-31 14:58:42.082 9311-9311/? W/System.err: at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.run(ObservableObserveOn.java:255)
2020-08-31 14:58:42.082 9311-9311/? W/System.err: at io.reactivex.android.schedulers.HandlerScheduler$ScheduledRunnable.run(HandlerScheduler.java:124)
2020-08-31 14:58:42.082 9311-9311/? W/System.err: at android.os.Handler.handleCallback(Handler.java:751)
2020-08-31 14:58:42.082 9311-9311/? W/System.err: at android.os.Handler.dispatchMessage(Handler.java:95)
2020-08-31 14:58:42.082 9311-9311/? W/System.err: at android.os.Looper.loop(Looper.java:154)
2020-08-31 14:58:42.082 9311-9311/? W/System.err: at android.app.ActivityThread.main(ActivityThread.java:6198)
2020-08-31 14:58:42.082 9311-9311/? W/System.err: at java.lang.reflect.Method.invoke(Native Method)
2020-08-31 14:58:42.082 9311-9311/? W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:891)
2020-08-31 14:58:42.082 9311-9311/? W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:781)
辛苦技术大大帮忙看看