Search code examples
androidioexceptionsinch

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


I have successfully added Sinch to my android project, calls work well on my S3 Mini, however, I have an OPPO A83 Phone (Android 7.1.1) that is unable to establish a call and accept incoming calls. I checked the logs and android studio shows me this:

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 

Is this a compatibility issue? Thanks!


Solution

  • I've managed to resolve my issue by moving my codes to a new project leaving build files in the old folder. Looks like an ordinary Clean won't do good.