Skip to content
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

Unable to Initiate Jitsi Meet After Upgrading to Android 14 App Crashing #217

Closed
pramod279 opened this issue Jan 8, 2024 · 26 comments
Closed

Comments

@pramod279
Copy link

Unable to initiate Jitsi Meet - App Crashes Immediately after targeting Android 14.

Fatal Exception: java.lang.RuntimeException
Unable to create service org.jitsi.meet.sdk.JitsiMeetOngoingConferenceService: java.lang.SecurityException: Starting FGS with type mediaProjection callerApp=ProcessRecord{82fabab 28805:com.darisni.nursery.debug/u0a287} targetSDK=34 requires permissions: all of the permissions allOf=true [android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION] any of the permissions allOf=false [android.permission.CAPTURE_VIDEO_OUTPUT, android:project_media]

@saghul
Copy link
Member

saghul commented Jan 8, 2024

Are you using our app or the SDK?

@pramod279
Copy link
Author

Hi @saghul I am using the SDK.

@saghul
Copy link
Member

saghul commented Jan 8, 2024

Are you building your app with target SDK 34? Our SDK does not support that yet, you should target API 33 until an SDK which targets 34 is out.

@pramod279
Copy link
Author

Yes, I have upgraded my app to SDK 34 which is when this crash started occurring. Most of the other libraries I am using have upgraded to support SDK 34, which is why I am forced to use SDK 34.

May I know by when we could expect Jitsi SDK to support SDK 34 as it has been launched months back. Google recommends upgrading to SDK 34

@saghul
Copy link
Member

saghul commented Jan 8, 2024

Supporting 34 doesn't mean you have to do it too, you can target 33 and your app will still work.

We expect to have a version which targets 34 this month.

@pramod279
Copy link
Author

Thanks for that update.

@mzgg
Copy link

mzgg commented Feb 22, 2024

Does it support version 34 now? and which version

@saghul
Copy link
Member

saghul commented Feb 22, 2024

Not yet.

@mzgg
Copy link

mzgg commented Feb 22, 2024

when do you plan it to release ?

@saghul
Copy link
Member

saghul commented Feb 22, 2024

No ETA right now, we have run into some problems with new foreground service permissions and are working on fixing them.

@chanmyaeaung-amity
Copy link

@saghul Is there any updates on this?

@saghul
Copy link
Member

saghul commented Jul 24, 2024

The latest version should have the fix, have you ran into problems?

@chanmyaeaung-amity
Copy link

@saghul I am using org.jitsi.react:jitsi-meet-sdk:6.0.0 before. T support android 14. I changed to org.jitsi.react:jitsi-meet-sdk:9.2.2 and got this build issue.

`Execution failed for task ':app:mergeDebugNativeLibs'.

2 files found with path 'lib/arm64-v8a/libfbjni.so' from inputs:
- /Users/amity/.gradle/caches/transforms-3/1addc573fc51e166d5ac7f6196f72c77/transformed/jetified-react-android-0.72.9-debug/jni/arm64-v8a/libfbjni.so
- /Users/amity/.gradle/caches/transforms-3/ba51a498c47e27c1e6a772ca73d84a39/transformed/jetified-fbjni-0.3.0/jni/arm64-v8a/libfbjni.so`

@saghul
Copy link
Member

saghul commented Jul 24, 2024

Are you trying to integrate the Android SDK in an RN app?

@chanmyaeaung-amity
Copy link

chanmyaeaung-amity commented Jul 24, 2024

@saghul It is android project. I don't have any other RN lib in my project.
Kotlin version : 1.7.21
Gradle : com.android.tools.build:gradle:7.2.2
Gradle wrapper distributionUrl=https://services.gradle.org/distributions/gradle-7.3.3-bin.zip

@saghul
Copy link
Member

saghul commented Jul 24, 2024

Weird. Are you using our proguard rules file?

@viking2917
Copy link

The latest version should have the fix, have you ran into problems?

@saghul just confirming, by 'latest version' you mean 9.2.2 correct?

(I am also struggling with the Foreground_permission problem, but it may well be my issue, still investigating).

@chanmyaeaung-amity
Copy link

@saghul No proguard, minifyenable is false.

If I add
packagingOptions { pickFirst '**/libfbjni.so' }

Build succeed. But video and audio streaming are not working anymore.

@saghul
Copy link
Member

saghul commented Aug 5, 2024

@saghul No proguard, minifyenable is false.

If I add packagingOptions { pickFirst '**/libfbjni.so' }

Build succeed. But video and audio streaming are not working anymore.

Are you using other RN libraries / SDKs?

@ugmlr
Copy link

ugmlr commented Aug 30, 2024

Had the same problem, I'm not exactly sure which package clashes, but adding

        pickFirst '**/libfbjni.so'
        pickFirst 'lib/x86/libfbjni.so'
        pickFirst 'lib/x86_64/libfbjni.so'
        pickFirst 'lib/armeabi-v7a/libfbjni.so'
        pickFirst 'lib/arm64-v8a/libfbjni.so'

worked for me (adding just the first one like @chanmyaeaung-amity didn't work for some reason)
I am using the Flutter SDK so might not work for everyone

@kaushal004vsu
Copy link

kaushal004vsu commented Sep 3, 2024

One plus nord 4 oxygenOS 34 not working for JITSI ,any solution?

@richanshah
Copy link

@pramod279 anyone has solution for this solution?

@pramod279
Copy link
Author

@pramod279 anyone has solution for this solution?
@richanshah Hi Richa, Unfortunatly no response. They are not giving a proper answer or fix for this issue and no deadlines also given.

@ugmlr
Copy link

ugmlr commented Sep 12, 2024

@pramod279 @richanshah Do you guys still have the problem that was initially described (the App crashing)? Because the newest SDK Version fixed the issue for me

@viking2917
Copy link

@ugmir @pramod279 @richanshah same for me, after using the new SDK everything is working for me. (also see: calvinckho/capacitor-jitsi-meet#115) I had to declare the permission android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK in order for this to work on Android 14. double-check your final AndroidManifest.xml to see if it is there, perhaps.

@richanshah
Copy link

richanshah commented Sep 12, 2024 via email

@saghul saghul closed this as completed Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants