Android Listeners not working
When running Android build the event listeners are not functioning; for example, subscriptions.add(uClient.onConversationUpdated.listen(); We added these lines to the app/bundle.gradle:
compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 }
and this error is thrown:
E/AndroidRuntime( 6214): Caused by: java.lang.NoSuchMethodError: No interface method getMessageBody()Ljava/lang/String; in class Lcom/twilio/conversations/Message; or its super classes (declaration of 'com.twilio.conversations.Message' appears in /data/app/~~WMXg6dT3hoVrP1Wj1syyFg==/io.iconnections.mobile-mDjh-NVCAMzEd0ja_5v44g==/base.apk!classes7.dex)
E/AndroidRuntime( 6214): at twilio.flutter.twilio_conversations.Mapper.messageToPigeon(Mapper.kt:102)
E/AndroidRuntime( 6214): at twilio.flutter.twilio_conversations.listeners.ConversationListener.onMessageAdded(ConversationListener.kt:17)
Any idea for a solution?
Thanks for any help, Scott.