Sinch Android - 订阅数据时出现 IO 异常。由于 Android API 更改,IllegalStateException 作为 IOException 重新抛出

Sinch Android - IO exception while subscribing for data. IllegalStateException rethrown as IOException due to Android API change

我已成功将 Sinch 添加到我的 android 项目中,调用在我的 S3 Mini 上运行良好,但是,我有一个 OPPO A83 Phone (Android 7.1.1)无法建立通话和接听来电。我检查了日志,android studio 向我展示了这个:

03-15 15:50:22.748 26432-4088/ph.com.app.app I/System.out: [OkHttp] sendRequest>>
03-15 15:50:22.748 26432-4088/ph.com.app.app I/System.out: [OkHttp] sendRequest<<
03-15 15:50:23.265 26432-4088/ph.com.app.app I/System.out: Close in OkHttp
03-15 15:50:23.265 26432-4088/ph.com.app.app W/PubNubListener: Attempt 5 -> IO exception while subscribing for data. IllegalStateException rethrown as IOException due to Android API change
03-15 15:50:23.265 26432-4088/ph.com.app.app E/PubNubListener: Permanently failing subscribe after 6 attempts.

                                                                   [     03-15 15:50:23.277 26432: 4279 D/         ]
                                                                   [Posix_connect Debug]Process ph.com.app.app :80 

这是兼容性问题吗?谢谢!

我已将我的代码移至新项目,将构建文件留在旧文件夹中,从而成功解决了我的问题。看来普通的Clean不行。

以上解决方案确实有效,但只需从 Android Studio 菜单 INVALIDATE CACHE AND RESTART 也解决了我的问题。