-
Notifications
You must be signed in to change notification settings - Fork 74
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
Cannot build apk file "Null Function(LocalInvitation)" [BUG] #139
Comments
I am having same issue. Please what is the solution? |
same issue with ios release build using:
Looks like it was expecting a string for these two methods, I did fork it and was able to build now but there are some deprecated methods |
+1 on same issue. Could you help take a look? @tadaspetra |
We're looking into this. Will push an update soon! |
Thanks @tadaspetra , looking forward to it, ačiū! |
any updates on this? |
It's being tracked in #138 |
New version has been released. Version This should solve the problem. Please reopen if it doesn' |
So 1.3.4 does not resolve the issue because you've now moved to http 1.0.0. Why ? From one issue to another. guys you can't do this, this is bad programming practice. http 1.0.0 is very new and most libs don't use it yet. Its causing issues with my other packages that are not yet compatible with http 1.0.0. PLease revert the http 1.0.0 upgrade and fix the bug. Its much wiser moving to http 1.0 with agora_uikit 2.0.0 instead of 1.3.4 |
Version 1.3.5 has just been released with a wider version of
|
While trying to run flutter build apk --release, the process finishes with a problem indicating that there might be an issue with agora rtm_client_event_handler.dart:76:7. I tried to resolve it changing build gradles and kotlin version, but with no success.
To reproduce the bug:
have these in the pubspec.yaml:
agora_uikit: ^1.3.3
permission_handler: ^10.2.0
try to run flutter build apk --release in the terminal.
Then it the console log output looks like this:
`Running Gradle task 'assembleRelease'...
/C:/Users/remig/AppData/Local/Pub/Cache/hosted/pub.dev/agora_uikit-1.3.3/lib/controllers/rtm_client_event_handler.dart:76:7: Error: A value of type 'Null Function(LocalInvitation)' can't be assigned to a variable of type 'dynamic Function(LocalInvitation, String)?'.
(AgoraRtmLocalInvitation invitation) {
^
/C:/Users/remig/AppData/Local/Pub/Cache/hosted/pub.dev/agora_uikit-1.3.3/lib/controllers/rtm_client_event_handler.dart:81:7: Error: A value of type 'void Function(LocalInvitation)' can't be assigned to a variable of type 'void Function(LocalInvitation, String)?'.
(AgoraRtmLocalInvitation invitation) {
^
Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
Where:
Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1201
What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
BUILD FAILED in 22s
Running Gradle task 'assembleRelease'... 22.9s
Gradle task assembleRelease failed with exit code 1`
Additional information:
build gradle: classpath 'com.android.tools.build:gradle:7.1.2'
wrapper distribution url: distributionUrl=https://services.gradle.org/distributions/gradle-7.4-all.zip
Some help or guidance would be appreciated :)
The text was updated successfully, but these errors were encountered: