I’m trying to register my service in the Sendbird by calling this method:
SendBirdPushHelper.registerPushHandler(MyDirectMessagingService())
and I’m getting this error:
021-01-14 16:30:20.773 12334-12334/com.picpay.debug E/AppDelegate$setupRxErrorHandler: java.lang.IllegalAccessError: Illegal class access: 'com.picpay.main.MainViewModel$startDirectMessage$1' attempting to access 'com.sendbird.android.AbstractPushHandler' (declaration of 'com.picpay.main.MainViewModel$startDirectMessage$1' appears in /data/app/~~b5UHusDVoDdtgdV-IznJwA==/com.picpay.debug-wZvtCGFHENuy-dZDZPhp7A==/base.apk!classes56.dex)
at com.picpay.main.MainViewModel$startDirectMessage$1.accept(MainViewModel.kt:79)
at com.picpay.main.MainViewModel$startDirectMessage$1.accept(MainViewModel.kt:17)
Can someone help me with that?