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

[UPGRADE]: org.jitsi.meet.sdk.ConnectionService: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present #356

Open
1 of 3 tasks
sayanlp99 opened this issue Feb 14, 2022 · 37 comments
Assignees
Labels
chore Upgrade dependencies

Comments

@sayanlp99
Copy link

sayanlp99 commented Feb 14, 2022

Dependency Information
Name:
Version:
Platform

  • Android
  • iOS
  • Web

Reason for upgrade
When I am running my project on Android 12 it shows an error that it android:exported is required in org.jitsi.meet.sdk.ConnectionService but this activity is not present in AndroidManifest.xml

*Provide additional context
Screenshot 2022-02-15 015526

@sayanlp99 sayanlp99 added the chore Upgrade dependencies label Feb 14, 2022
@TarishAhmed
Copy link

try setting target SDK version to 30 and compile SDK version to 31, this is only a temporary fix
android { compileSdkVersion 31 defaultConfig { // ... minSdkVersion 23 //Required for Jitsi targetSdkVersion 30 // ... } }

@minh-dai
Copy link

minh-dai commented Mar 8, 2022

in my flutter project, It has the same error

@Meri994
Copy link

Meri994 commented Mar 16, 2022

@TarishAhmed I am facing the same issue.
#366

your temporary given solution is working for me but it is not accurate. Did you find any other solution?

@Imperial-lord
Copy link

This issue needs attention. I am facing the same thing as well!

@Harishwarrior
Copy link

Can I work on this or is it already assigned?

@Meri994
Copy link

Meri994 commented Mar 16, 2022

@Harishwarrior Hey, Please check it from your end. Give support to the latest android version.

@Harishwarrior
Copy link

Harishwarrior commented Mar 16, 2022

@Harishwarrior Hey, Please check it from your end. Give support to the latest android version.

Awesome. I'll work on it right now.

@Meri994
Copy link

Meri994 commented Mar 16, 2022

@Harishwarrior Hey, Please check it from your end. Give support to the latest android version.

Awesome. I'll work on it right now.

Thanks

@Harishwarrior
Copy link

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.gunschu.jitsi_meet_example/com.gunschu.jitsi_meet.JitsiMeetPluginActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
E/AndroidRuntime(17133): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3635)
E/AndroidRuntime(17133): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3792)
E/AndroidRuntime(17133): 	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
E/AndroidRuntime(17133): 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
E/AndroidRuntime(17133): 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
E/AndroidRuntime(17133): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2210)
E/AndroidRuntime(17133): 	at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime(17133): 	at android.os.Looper.loopOnce(Looper.java:201)
E/AndroidRuntime(17133): 	at android.os.Looper.loop(Looper.java:288)
E/AndroidRuntime(17133): 	at android.app.ActivityThread.main(ActivityThread.java:7835)
E/AndroidRuntime(17133): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(17133): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/AndroidRuntime(17133): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
E/AndroidRuntime(17133): Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
E/AndroidRuntime(17133): 	at androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor(AppCompatDelegateImpl.java:843)
E/AndroidRuntime(17133): 	at androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor(AppCompatDelegateImpl.java:806)
E/AndroidRuntime(17133): 	at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:693)
E/AndroidRuntime(17133): 	at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:170)
E/AndroidRuntime(17133): 	at org.jitsi.meet.sdk.JitsiMeetActivity.onCreate(JitsiMeetActivity.java:81)
E/AndroidRuntime(17133): 	at com.gunschu.jitsi_meet.JitsiMeetPluginActivity.onCreate(JitsiMeetPluginActivity.kt:92)
E/AndroidRuntime(17133): 	at android.app.Activity.performCreate(Activity.java:8050)
E/AndroidRuntime(17133): 	at android.app.Activity.performCreate(Activity.java:8030)
E/AndroidRuntime(17133): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1343)
E/AndroidRuntime(17133): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3608)
E/AndroidRuntime(17133): 	... 12 more
I/Process (17133): Sending signal. PID: 17133 SIG: 9

@tuantvu I have migrated this plugin. But, when I press start meeting the app crashes.

@RajChavda
Copy link

@Harishwarrior This is the same problem we are facing and a black screen appears on some Android devices.

Thanks in advance for your help.

@Meri994
Copy link

Meri994 commented Mar 17, 2022

@jimmyjose-dev Check this if you can help us. Thank you.

@Harishwarrior
Copy link

@Harishwarrior This is the same problem we are facing and a black screen appears on some Android devices.

Thanks in advance for your help.

Seems like we need to change implementation part. Lemme try fixing it.

@RajChavda
Copy link

@Harishwarrior This is the same problem we are facing and a black screen appears on some Android devices.
Thanks in advance for your help.

Seems like we need to change implementation part. Lemme try fixing it.

Okay, I understand but it would be great if you could tell us when it will be completed.

@Harishwarrior
Copy link

Harishwarrior commented Mar 17, 2022

@Harishwarrior This is the same problem we are facing and a black screen appears on some Android devices.
Thanks in advance for your help.

Seems like we need to change implementation part. Lemme try fixing it.

Okay, I understand but it would be great if you could tell us when it will be completed.

Currently I have no solution. I'll work on it. Don't know when it'll be fixed. Cause I don't wanna do workarounds to fix this temporarily.

@MusabBoltX
Copy link

error
Still I'm facing the issue on production can someone please tell the issue temporarily that i can give app to production thanks in advance

@TarishAhmed
Copy link

error Still I'm facing the issue on production can someone please tell the issue temporarily that i can give app to production thanks in advance

#356 (comment)

Try this.

@VasuVaradhan
Copy link

May I get any solution other than the temporary fixes

@edx86
Copy link

edx86 commented May 1, 2022

Hi, based on exception looks like you have to add android:exported="true" to android manifest.

Can you please make sure that you have added it to app/src/main/AndroidManifest.xml ?

<application
    ...
    <activity
        ...
        android:exported="true"
        ....

I am not sure this may resolve the issue, but give it a try.

@subhra9326
Copy link

Hi, I am also facing the same issue after upgrading flutter 3.0
All the packages are working well but when I add this jitsimeet packages it gives an error same as the title given here.
I have already added the android:exported="true" in AndroidManifest but still, it gives an error. Please fix this issue and update the AndroidManifest used in this packakges.

@alabbasiDev
Copy link

try using this package jitsi_meet_wrapper instead. it works fine for me.

https://pub.dev/packages/jitsi_meet_wrapper

@definitelyme
Copy link

definitelyme commented Jul 6, 2022

try using this package jitsi_meet_wrapper instead. it works fine for me.

https://pub.dev/packages/jitsi_meet_wrapper

Works!
Use like this:

jitsi_meet_wrapper:
  git:
    url: https://github.com/Flutter-Fox/jitsi_meet_wrapper.git
    path: jitsi_meet_wrapper/
    ref: fix/pubspec

@tushar-asodariya
Copy link

try setting target SDK version to 30 and compile SDK version to 31, this is only a temporary fix android { compileSdkVersion 31 defaultConfig { // ... minSdkVersion 23 //Required for Jitsi targetSdkVersion 30 // ... } }

this worked

@myasir2
Copy link

myasir2 commented Aug 7, 2022

I was having this problem with gradle 7 with one of my newer apps. It works perfectly fine on one of my older app which is using gradle 6. So I changed my gradle version to 6 and it started working. I changed it to 6.7 in the gradle-wrapper.properties file, and changed com.android.tools.build:gradle to 4.1.0:

build.gradle

buildscript {
    ext.kotlin_version = '1.6.10'
    repositories {
        google()
        mavenCentral()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:4.1.0'
        // START: FlutterFire Configuration
        classpath 'com.google.gms:google-services:4.3.10'
        // END: FlutterFire Configuration
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

allprojects {
    repositories {
        google()
        mavenCentral()
    }
}

rootProject.buildDir = '../build'
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
    project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

gradle-wrapper.properties

#Fri Jun 23 08:50:38 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip

@Eng-NUREDDIN
Copy link

use this in pubspec :
jitsi_meet:
git:
url: https://github.com/Eng-NUREDDIN/jitsi_meet.git
path: jitsi_meet/
ref: master

@habner12
Copy link

@Eng-NUREDDIN where should I put this? I put on Pubsec.yaml but still not working.

@ialyzaafan
Copy link

any updates ??

@Eng-NUREDDIN
Copy link

@habner12 sorry for the late response yes in the pubspec and it should work. what is the error you are getting?

@MAlazhariy
Copy link

MAlazhariy commented Sep 26, 2022

This solution worked for me.

add this service to your manifest

<service
       android:name="org.jitsi.meet.sdk.ConnectionService"
       android:permission="android.permission.BIND_TELECOM_CONNECTION_SERVICE"
       android:exported="true">
       <intent-filter>
           <action android:name="android.telecom.ConnectionService" />
       </intent-filter>
</service>

reference: https://stackoverflow.com/a/73272731/16449728

@habner12
Copy link

habner12 commented Sep 27, 2022

@Eng-NUREDDIN Thank you so much! Now My App it works. 👍

@Dewsworld
Copy link

@Eng-NUREDDIN your solution is working! Can you make it a standard package?

@sumit-coder
Copy link

Thanks, this is working, if want to where to add then [ add this in the manifest: manifest > application > after activity>add this ] from @MAlazhariy solution

@mh-sarkar-official
Copy link

try using this package jitsi_meet_wrapper instead. it works fine for me.
https://pub.dev/packages/jitsi_meet_wrapper

Works! Use like this:

jitsi_meet_wrapper:
  git:
    url: https://github.com/Flutter-Fox/jitsi_meet_wrapper.git
    path: jitsi_meet_wrapper/
    ref: fix/pubspec

But this package has no terminated option programmatically!

@agustinmejia
Copy link

Esta solución funcionó para mí.

agregue este servicio a su manifiesto

<service
       android:name="org.jitsi.meet.sdk.ConnectionService"
       android:permission="android.permission.BIND_TELECOM_CONNECTION_SERVICE"
       android:exported="true">
       <intent-filter>
           <action android:name="android.telecom.ConnectionService" />
       </intent-filter>
</service>

referencia: https://stackoverflow.com/a/73272731/16449728

El problema es que aumenta 20 MB más a tu versión final y arroja varios errores en el informe de lanzamiento de google play console.

@koai-dev
Copy link

Giải pháp này làm việc cho tôi.

Thêm dịch vụ này vào tệp kê khai của bạn

<service
       android:name="org.jitsi.meet.sdk.ConnectionService"
       android:permission="android.permission.BIND_TELECOM_CONNECTION_SERVICE"
       android:exported="true">
       <intent-filter>
           <action android:name="android.telecom.ConnectionService" />
       </intent-filter>
</service>

Tham khảo: https://stackoverflow.com/a/73272731/16449728

thank you. It work for me

@bradfordcan
Copy link

bradfordcan commented Feb 12, 2023

Thank you for your workaround on this and it works if you use sdkVersion 30. But Google requires us to publish 31. Any updates on this? We would like to use your solution but we might have to find another solution because of this.

@ndizihiwesimon
Copy link

I am still facing issue when I tap on join meeting and app crashes, I have tried to configure pro-guard.pro but it doesn't take effect! I am using jist_meet_wrapper, any fix?
Thank you

@MusabBoltX
Copy link

MusabBoltX commented Mar 27, 2023

I am still facing issue when I tap on join meeting and app crashes, I have tried to configure pro-guard.pro but it doesn't take effect! I am using jist_meet_wrapper, any fix? Thank you

Looks like the package has been discontinued and has been replaced with jisti_meet_wrapper. Previously, I gave up on jitsi_meet because of no updates. Android 12+ devices where it crashes and you may try its wrapper package and go boom if it works on Android 12+.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Upgrade dependencies
Projects
None yet
Development

No branches or pull requests