gunschu / jitsi_meet

Initial commit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mismatch Data type in kotlin -> JitsiMeetPlugin.kt: (66, 42)

ctkqiang opened this issue · comments

jitsi_meet plugin version
jitmi_meet:4.0.0

Describe the bug
the code return

jitsi_meet-4.0.0\android\src\main\kotlin\com\gunschu\jitsi_meet\JitsiMeetPlugin.kt: (32, 38): Null can not be a value of a non-null type Activity
e: C:\flutter\.pub-cache\hosted\pub.dartlang.org\jitsi_meet-4.0.0\andr

suspect that the error caused by

    private var activity: Activity? = null

@jimmyjose-dev @rwbr @mosleim @buzzwin @agfeo

Error:

JitsiMeetPlugin.kt C:\src\flutter.pub-cache\hosted\pub.dartlang.org\
jitsi_meet-4.0.0\android\src\main\kotlin\com\gunschu\jitsi_meet\
JitsiMeetPlugin.kt: (66, 42): 
Type mismatch: inferred type is Activity? but Activity was expected

Problem :

Solved it by

constructor(activity: Activity?) : this() {
        this.activity = activity
}
commented

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.

Thanks !!!

Error:

JitsiMeetPlugin.kt C:\src\flutter.pub-cache\hosted\pub.dartlang.org\
jitsi_meet-4.0.0\android\src\main\kotlin\com\gunschu\jitsi_meet\
JitsiMeetPlugin.kt: (66, 42): 
Type mismatch: inferred type is Activity? but Activity was expected

Problem :

Solved it by

constructor(activity: Activity?) : this() {
        this.activity = activity
}

You saved my life. 💪👍

It's nice, that you could solve this problem. So what does hold you back publishing a corrected version of that package?

It's nice, that you could solve this problem. So what does hold you back publishing a corrected version of that package?

Permission. I don't have the permission yet.

commented

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.