gunschu / jitsi_meet

Initial commit
207 stars 280 forks source link

[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 sayanlp99 opened 2 years ago

sayanlp99 commented 2 years ago

Dependency Information Name: Version: Platform

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

TarishAhmed commented 2 years ago

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 commented 2 years ago

in my flutter project, It has the same error

Meri994 commented 2 years ago

@TarishAhmed I am facing the same issue. https://github.com/gunschu/jitsi_meet/issues/366

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

Imperial-lord commented 2 years ago

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

Harishwarrior commented 2 years ago

Can I work on this or is it already assigned?

Meri994 commented 2 years ago

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

Harishwarrior commented 2 years ago

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

Awesome. I'll work on it right now.

Meri994 commented 2 years ago

@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 commented 2 years ago
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 commented 2 years ago

@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 commented 2 years ago

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

Harishwarrior commented 2 years ago

@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 commented 2 years ago

@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 commented 2 years ago

@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 commented 2 years ago

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 commented 2 years ago

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

https://github.com/gunschu/jitsi_meet/issues/356#issuecomment-1049706019

Try this.

VasuVaradhan commented 2 years ago

May I get any solution other than the temporary fixes

edx86 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

https://pub.dev/packages/jitsi_meet_wrapper

definitelyme commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 1 year ago

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

habner12 commented 1 year ago

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

ialyzaafan commented 1 year ago

any updates ??

Eng-NUREDDIN commented 1 year ago

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

MAlazhariy commented 1 year ago

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 commented 1 year ago

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

Dewsworld commented 1 year ago

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

sumit-coder commented 1 year ago

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-wiztecbd commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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+.