Fix NullPointerException and Android Build Conflicts#161
Open
Earbaj wants to merge 3 commits intojitsi:mainfrom
Open
Fix NullPointerException and Android Build Conflicts#161Earbaj wants to merge 3 commits intojitsi:mainfrom
Earbaj wants to merge 3 commits intojitsi:mainfrom
Conversation
The initial implementation encountered build failures due to Jitsi Meet SDK 12.0.0 dependency conflicts and pub cache version mismatches. 1. Dependency Conflict (Duplicate Classes) Jitsi's internal modules conflict with media3. Since this conflict occurs at the application level (where both Jitsi and other plugins' dependencies meet), you need to add an exclusion to your main application's build file.
onCreate to handle activity recreations.
// Ensure JitsiMeet is initialized
val defaultOptions = JitsiMeetConferenceOptions.Builder().build()
JitsiMeet.setDefaultConferenceOptions(defaultOptions)
WrapperJitsiMeetActivity.launch(activity!!, options)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Jitsi Meet Flutter SDK Fix (Crash + Dependency Conflict)
Overview
This project provides a fix for critical issues encountered while integrating the Jitsi Meet Flutter SDK (
v12.0.0) into Android applications.It resolves:
NullPointerException)Problems
1. Crash on Joining Meeting
Error:
Cause:
The Jitsi React Native engine (
ReactInstanceManager) was not initialized before launching the meeting activity.2. Duplicate Class Build Error
Error:
Cause:
Jitsi SDK bundles
react-native-videoAnother dependency also includes:
Result → Duplicate class conflict during Gradle build
Solutions
1. Fix Jitsi Initialization (CRASH FIX)
JitsiMeetPlugin.ktAdd explicit initialization before launching meeting:
WrapperJitsiMeetActivity.ktAdd fallback initialization inside
onCreate():Add Required Imports
2. Fix Duplicate Class Issue (BUILD FIX)
Plugin Level (
android/build.gradleor plugin module)Packaging Fix
3. REQUIRED App-Level Fix (IMPORTANT)
Add this to:
Changes Checklist
Verification
Important Notes
Result