Hi all, I'm working on adding Twilio video chat to...
# compose
g
Hi all, I'm working on adding Twilio video chat to a project utilizing Compose, and I'm getting a strange compiler-level error from one of the Twilio components. Has anyone attempted this yet, or seen this error before?
Copy code
java.lang.IllegalArgumentException: Unhandled intrinsic in ExpressionCodegen: FUN IR_EXTERNAL_DECLARATION_STUB name:<get-primaryVideoView> visibility:public modality:FINAL <> ($receiver:android.app.Activity) returnType:com.twilio.video.VideoView?
I haven't called the .xml file that this function is located, but this appears to be a separate activity from my main that's causing the error. Do I need to somehow refactor this into my main activity?
a
Might be related to kotlin synthetics being used, looks similar to the error I got when my project had those, when I switched to viewbinding, it worked fine
👍 2
g
Andriy, thanks! Changing to viewbinding appears to have fixed the compiler bug. Hopefully nothing else crazy happens while I'm integrating the activity, but I appreciate the help!
👍 1
a
No problem, also I've had issues with it silently breaking @Parcelize if you're using that so you'll need to handle that as well until compose becomes more stable
👌 1