-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: < JitsiMeetingListener - onOpened But but Activity Crashed on Release Mode> #438
Comments
This is much similar to other Bug Reports But it is a Flutter project not a react native or Android project At the End of many solutions, I can just find duplicate I've attached the ProGuard File of the configuration but still no use This is the AndroidManifest File is this creating the problem as I think so since the activity lifecycle on debug print not showing any thing
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
jitsi_meet plugin version
omni_jitsi_meet: ^1.0.13
Right now I need to send it to production over google play store but in debug mode, it is performing ok, but not in release mode
I resolved the Icon Error by changing the ic_notification icon
I am unable to find any solution and unable to see what is going wrong since it is in release mode
I tried to run it on Samsung A02s, Google Pixel 4, Google Pixel 5, Mark 1 10, Android api level 10, 11, 12
The result is the same whenever I try to open it with a button press it crashed without any debug response
The last response it shows is
[ +133 ms] I/flutter (20586): JitsiMeetingListener - onOpened
proguard-android.txt
Describe the bug
JitsiMeetingListener - onOpened but afterwards, there is no screen and app closed
Flutter doctor -v
flutter doctor -v
[√] Flutter (Channel stable, 3.7.5, on Microsoft Windows [Version 10.0.19045.2846], locale en-US)
• Flutter version 3.7.5 on channel stable at C:\src\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision c07f788888 (3 months ago), 2023-02-22 17:52:33 -0600
• Engine revision 0f359063c4
• Dart version 2.19.2
• DevTools version 2.20.1
This is taking an unexpectedly long time...[√] Windows Version (Installed version of Windows is version 10 or higher)
Checking Android licenses is taking an unexpectedly long time...[!] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
• Android SDK at C:\Users\Huzaifa\AppData\Local\Android\sdk
• Platform android-33-ext5, build-tools 33.0.2
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-9505619)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[!] Visual Studio - develop for Windows (Visual Studio Community 2022 17.4.5)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.4.33403.182
X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop development with C++" workload, and include these
components:
MSVC v142 - VS 2019 C++ x64/x86 build tools
- If there are multiple build tool versions available, install the latest
C++ CMake tools for Windows
Windows 10 SDK
[√] Android Studio (version 2022.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-9505619)
[√] VS Code, 64-bit edition (version 1.77.3)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 3.62.0
[√] Connected device (4 available)
• SM A025F (mobile) • R9HR604QBGL • android-arm • Android 12 (API 31)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.2846]
• Chrome (web) • chrome • web-javascript • Google Chrome 113.0.5672.93
• Edge (web) • edge • web-javascript • Microsoft Edge 113.0.1774.42
[√] HTTP Host Availability
• All required HTTP hosts are available
! Doctor found issues in 2 categories.
Additional context this is proguard File
-keep class io.flutter.app.** { ; }
-keep class io.flutter.plugin.* { ; }
-keep class io.flutter.util.* { ; }
-keep class io.flutter.view.* { ; }
-keep class io.flutter.* { ; }
-keep class io.flutter.plugins.* { *; }
Source: https://github.com/jitsi/jitsi-meet/blob/master/android/app/proguard-rules.pro
Check above link for changes if release builds are broken again
Copyright (c) Facebook, Inc. and its affiliates.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
Add project specific ProGuard rules here.
By default, the flags in this file are appended to flags specified
in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
You can edit the include path and order by changing the proguardFiles
directive in build.gradle.
For more details, see
http://developer.android.com/guide/developing/tools/proguard.html
Add any project specific keep options here:
React Native
proguard-android.txt
Keep our interfaces so they can be used by other ProGuard rules.
See http://sourceforge.net/p/proguard/bugs/466/
-keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip
-keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters
-keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip
Do not strip any method/class that is annotated with @DoNotStrip
-keep @com.facebook.proguard.annotations.DoNotStrip class *
-keep @com.facebook.common.internal.DoNotStrip class *
-keepclassmembers class * {
@com.facebook.proguard.annotations.DoNotStrip *;
@com.facebook.common.internal.DoNotStrip *;
}
-keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * {
void set*(**);
*** get();
}
-keep class * extends com.facebook.react.bridge.JavaScriptModule { *; }
-keep class * extends com.facebook.react.bridge.NativeModule { *; }
-keepclassmembers,includedescriptorclasses class * { native ; }
-keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; }
-keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; }
-keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; }
-dontwarn com.facebook.react.**
-keep,includedescriptorclasses class com.facebook.react.bridge.** { *; }
okhttp
-keepattributes Signature
-keepattributes Annotation
-keep class okhttp3.** { ; }
-keep interface okhttp3.* { ; }
-dontwarn okhttp3.*
okio
-keep class sun.misc.Unsafe { ; }
-dontwarn java.nio.file.
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
-keep class okio.** { ; }
-dontwarn okio.*
WebRTC
-keep class org.webrtc.** { *; }
-dontwarn org.chromium.build.BuildHooksAndroid
Jitsi Meet SDK
-keep class org.jitsi.meet.sdk.** { ; }
-keep interface org.jitsi.meet.sdk.* { *; }
Jitsi Meet dependencies
-keep class org.jitsi.meet.** { ; }
-keep interface org.jitsi.meet.* { *; }
-keep class org.jitsi.meet.sdk.** { ; }
-keep interface org.jitsi.meet.sdk.* { *; }
-keep class org.jitsi.meet.sdk.build.** { *; }
-keep class org.jitsi.meet.sdk.external.** { *; }
-keep class org.jitsi.meet.sdk.log.** { *; }
-keep class org.jitsi.meet.sdk.net.** { *; }
-keep class org.jitsi.meet.sdk.util.** { *; }
-keep class org.jitsi.meet.sdk.views.** { *; }
-keep class org.jitsi.meet.sdk.WebRTCAdapter.** { *; }
-keep class org.webrtc.** { *; }
-keep class com.facebook.react.** { *; }
We added the following when we switched minifyEnabled on. Probably because we
ran the app and hit problems...
-keep class com.facebook.react.bridge.CatalystInstanceImpl { *; }
-keep class com.facebook.react.bridge.ExecutorToken { *; }
-keep class com.facebook.react.bridge.JavaScriptExecutor { *; }
-keep class com.facebook.react.bridge.ModuleRegistryHolder { *; }
-keep class com.facebook.react.bridge.ReadableType { ; }
-keep class com.facebook.react.bridge.queue.NativeRunnable { ; }
-keep class com.facebook.react.devsupport. { *; }
-dontwarn com.facebook.react.devsupport.**
-dontwarn com.google.appengine.**
-dontwarn com.squareup.okhttp.**
-dontwarn javax.servlet.**
^^^ We added the above when we switched minifyEnabled on.
Rule to avoid build errors related to SVGs.
-keep public class com.horcrux.svg.** {*;}
Hermes
-keep class com.facebook.hermes.unicode.** { *; }
facebook/fresco#2638
-keep public class com.facebook.imageutils.** {
public *;
}
JitsiMeet Code That I used
_joinMeeting() async {
// final String? serverUrl =
// serverText.text.trim().isEmpty ? null : serverText.text;
}
This is the app level gradle
This is project level gradle
Error Logs
[ +133 ms] I/flutter (20586): JitsiMeetingListener - onOpened
after this in release mode, there is nothing app crashed but the terminal is still connected and showing nothing in the terminal,
The text was updated successfully, but these errors were encountered: