Search code examples
androidfluttergradlebuild.gradlejitsi-meet

JitsiMeetPlugin.kt: (66, 42): Type mismatch: inferred type is Activity? but Activity was expected


I plugin JitsiMeet but now I'm getting this error after giving all dependencies for this package.


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':jitsi_meet:compileDebugKotlin'.
> Compilation error. See log for more details

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2m 39s
Exception: Gradle task assembleDebug failed with exit code 1

Solution

  • Goto the JitsiMeetPlugin.kt file and replace all the Activity with Activity? except package name and comment.