jitsi_meet_wrapper
jitsi_meet_wrapper copied to clipboard
Jitsi_meet_wrapper crashes with flutter_stripe
Jitsi_meet_wrapper crashes if the flutter_stripe dependency is added. Without the flutter_stripe dependency, jitsi_meet_wrapper works with no issues. Below is errors
`D/ReactInstanceManagerHolder(28424): initializing RN with Activity
D/AndroidRuntime(28424): Shutting down VM
E/AndroidRuntime(28424): FATAL EXCEPTION: main
E/AndroidRuntime(28424): Process: com.myadd.jitsi, PID: 28424
E/AndroidRuntime(28424): java.lang.NoSuchMethodError: No static method builder()Lcom/facebook/react/common/MapBuilder$Builder; in class Lcom/facebook/react/common/MapBuilder; or its super classes (declaration of 'com.facebook.react.common.MapBuilder' appears in /data/app/~~DVwcobJ_5v53qTVM-P-ESA==/com.myadd.jitsi-2hp7u0MQWNoXC1yia3aPIA==/base.apk!classes14.dex)
E/AndroidRuntime(28424): at com.facebook.react.ReactAndroidHWInputDeviceHelper.
Below are the dependencies that don't work together: flutter_stripe: ^9.0.0+1 jitsi_meet_wrapper: ^0.2.0+1
Same issue
Same issue
same issue
Hello guys i have the answer to that i suppose! If jitsi or stripe could change the classes names under the facebook/bridge directory it works fine! The problem is that both packages and actually any jitsi or stripe package use the same code for facebook/bridge directory which is very odd! anyway! if you want i have forked and changed the stripe_android files and now any jitsi package can work with my fork. Give it a try if you want and send me your feedback please!
https://github.com/TetrixGauss/flutter_stripe.git
I hope this works for you as well!
Hello guys i have the answer to that i suppose! If jitsi or stripe could change the classes names under the facebook/bridge directory it works fine! The problem is that both packages and actually any jitsi or stripe package use the same code for facebook/bridge directory which is very odd! anyway! if you want i have forked and changed the stripe_android files and now any jitsi package can work with my fork. Give it a try if you want and send me your feedback please!
https://github.com/TetrixGauss/flutter_stripe.git
I hope this works for you as well!
Thank you so much for this workaround. I tried it but it is not working... No more crashes but the stripe is not working. Just getting exception below when i try to call the payment sheet: _displayPaymentSheet
'StripeConfigException' is not a subtype of type 'String'
Can you please open an issue on my repo and put there the whole console log with the error?
Issue was my mistake. It's working...thanks so much for this fix...
Sent from my T-Mobile 5G Device
-------- Original message -------- From: TetrixGauss @.> Date: 9/10/23 3:24 AM (GMT-06:00) To: saibotma/jitsi_meet_wrapper @.> Cc: mbebwo @.>, Author @.> Subject: Re: [saibotma/jitsi_meet_wrapper] Jitsi_meet_wrapper crashes with flutter_stripe (Issue #118)
Can you please open an issue on my repo and put there the whole console log with the error?
— Reply to this email directly, view it on GitHubhttps://github.com/saibotma/jitsi_meet_wrapper/issues/118#issuecomment-1712750200, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIUBT77AX7N5DQYUALGH4KLXZV2LBANCNFSM6AAAAAA2U2JAIY. You are receiving this because you authored the thread.Message ID: @.***>
Glad I could help!
@TetrixGauss Can you help me with error. I user your library an get an error
- What went wrong:
Could not determine the dependencies of task ':app:lintVitalReportRelease'.
> Could not resolve all task dependencies for configuration ':app:releaseCompileClasspath'.
> Could not create task ':stripe_android:generateReleaseLintModel'.
> coreLibraryDesugaring configuration contains no dependencies. If you intend to enable core library desugaring, please add dependencies to coreLibraryDesugaring configuration.
@TetrixGauss Can you help me with error. I user your library an get an error
- What went wrong:
Could not determine the dependencies of task ':app:lintVitalReportRelease'. > Could not resolve all task dependencies for configuration ':app:releaseCompileClasspath'. > Could not create task ':stripe_android:generateReleaseLintModel'. > coreLibraryDesugaring configuration contains no dependencies. If you intend to enable core library desugaring, please add dependencies to coreLibraryDesugaring configuration.
Can you give me more information please to reproduce the error?
@TetrixGauss Can you help me with error. I user your library an get an error
- What went wrong:
Could not determine the dependencies of task ':app:lintVitalReportRelease'. > Could not resolve all task dependencies for configuration ':app:releaseCompileClasspath'. > Could not create task ':stripe_android:generateReleaseLintModel'. > coreLibraryDesugaring configuration contains no dependencies. If you intend to enable core library desugaring, please add dependencies to coreLibraryDesugaring configuration.
Can you give me more information please to reproduce the error?
@TetrixGauss Sorry - this bug was in my fork library. When I used your library - I get another error
Execution failed for task ':stripe_android:compileReleaseKotlin'.
Inconsistent JVM-target compatibility detected for tasks 'compileReleaseJavaWithJavac' (1.8) and 'compileReleaseKotlin' (17).
@TetrixGauss Can you help me with error. I user your library an get an error
- What went wrong:
Could not determine the dependencies of task ':app:lintVitalReportRelease'. > Could not resolve all task dependencies for configuration ':app:releaseCompileClasspath'. > Could not create task ':stripe_android:generateReleaseLintModel'. > coreLibraryDesugaring configuration contains no dependencies. If you intend to enable core library desugaring, please add dependencies to coreLibraryDesugaring configuration.
Can you give me more information please to reproduce the error?
@TetrixGauss Sorry - this bug was in my fork library. When I used your library - I get another error
Execution failed for task ':stripe_android:compileReleaseKotlin'.
Inconsistent JVM-target compatibility detected for tasks 'compileReleaseJavaWithJavac' (1.8) and 'compileReleaseKotlin' (17).
Can you give me all the configuration? Gradle files etc.
@TetrixGauss Sure I received an error when build release is creaded. Desktop.zip
@Korefey It looks like you're trying to compile Java code with Java 8 (compileReleaseJavaWithJavac) and Kotlin code with a higher version (JVM 17). To fix this, you need to ensure that the Java version used for both tasks is consistent.
Here's what you can do:
- Check Kotlin configuration: Make sure that the Kotlin plugin is configured to use Java 8 or lower. You can set the JVM target version for Kotlin in your Gradle or Maven configuration.
- Update Java version for Java tasks: If possible, update the Java version for your Java tasks (compileReleaseJavaWithJavac) to match the Kotlin version. You can set the Java version in your build.gradle or build.gradle.kts file.For Gradle, you can set the Java version like this:
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
}
Ensure that JavaVersion.VERSION_17 matches the Kotlin JVM target version. 3. Check dependencies: Ensure that your project dependencies are compatible with the Java version you're using. Sometimes, third-party libraries might require a specific Java version. 4. Update Kotlin version: If necessary, update your Kotlin version to match the Java version you're using. Ensure that your Kotlin version supports the Java version you're targeting. 5. Sync Gradle/Maven: After making changes to your configuration, sync your Gradle or Maven project to apply the changes.
@Korefey are you ok? Should I close that issue?
@TetrixGauss yes, I solved this problem.
You guys can try using the new official package: https://pub.dev/packages/jitsi_meet_flutter_sdk