https://kotlinlang.org logo
#compose
Title
# compose
g

Griffin.Park

07/14/2020, 1:22 PM
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

akatkov

07/14/2020, 4:11 PM
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

Griffin.Park

07/15/2020, 4:05 PM
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

akatkov

07/15/2020, 5:06 PM
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
6 Views