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

Agora UI Kit is not compiling #177

Closed
nikkieke opened this issue Mar 2, 2024 · 7 comments
Closed

Agora UI Kit is not compiling #177

nikkieke opened this issue Mar 2, 2024 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@nikkieke
Copy link

nikkieke commented Mar 2, 2024

Agora UI Kit was building successfully previously but now it's throwing errors when building the debug app on emulator and device.
This is the error log:

../../../AppData/Local/Pub/Cache/hosted/pub.dev/agora_uikit-1.3.7/lib/models/agora_rtc_event_handlers.dart:189:7: Error: Type 'LocalVideoStreamError' not found.
LocalVideoStreamError error)? onLocalVideoStateChanged;
^^^^^^^^^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dev/agora_uikit-1.3.7/lib/models/agora_rtc_event_handlers.dart:354:40: Error: Type 'RhythmPlayerErrorType' not found.
RhythmPlayerStateType state, RhythmPlayerErrorType errorCode)?
^^^^^^^^^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dev/agora_uikit-1.3.7/lib/models/agora_rtc_event_handlers.dart:446:7: Error: Type 'LocalAudioStreamError' not found.
LocalAudioStreamError error)? onLocalAudioStateChanged;
^^^^^^^^^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dev/agora_uikit-1.3.7/lib/models/agora_rtc_event_handlers.dart:521:7: Error: Type 'RtmpStreamPublishErrorType' not found.
RtmpStreamPublishErrorType errCode)? onRtmpStreamingStateChanged;
^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dev/agora_uikit-1.3.7/lib/models/agora_rtc_event_handlers.dart:554:23: Error: Type 'ChannelMediaRelayEvent' not found.
final void Function(ChannelMediaRelayEvent code)? onChannelMediaRelayEvent;
^^^^^^^^^^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dev/agora_uikit-1.3.7/lib/models/agora_rtc_event_handlers.dart:189:7: Error: 'LocalVideoStreamError' isn't a type.
LocalVideoStreamError error)? onLocalVideoStateChanged;
^^^^^^^^^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dev/agora_uikit-1.3.7/lib/models/agora_rtc_event_handlers.dart:354:40: Error: 'RhythmPlayerErrorType' isn't a type.
RhythmPlayerStateType state, RhythmPlayerErrorType errorCode)?
^^^^^^^^^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dev/agora_uikit-1.3.7/lib/models/agora_rtc_event_handlers.dart:446:7: Error: 'LocalAudioStreamError' isn't a type.
LocalAudioStreamError error)? onLocalAudioStateChanged;
^^^^^^^^^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dev/agora_uikit-1.3.7/lib/models/agora_rtc_event_handlers.dart:521:7: Error: 'RtmpStreamPublishErrorType' isn't a type.
RtmpStreamPublishErrorType errCode)? onRtmpStreamingStateChanged;
^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dev/agora_uikit-1.3.7/lib/models/agora_rtc_event_handlers.dart:554:23: Error: 'ChannelMediaRelayEvent' isn't a type.
final void Function(ChannelMediaRelayEvent code)? onChannelMediaRelayEvent;
^^^^^^^^^^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dev/agora_uikit-1.3.7/lib/controllers/rtc_event_handlers.dart:146:6: Error: No named parameter with the name 'onChannelMediaRelayEvent'.
}, onChannelMediaRelayEvent: (code) {
^^^^^^^^^^^^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dev/agora_rtc_engine-6.3.0/lib/src/agora_rtc_engine.dart:1576:9: Context: Found this candidate, but the arguments don't match.
const RtcEngineEventHandler({
^^^^^^^^^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception

FAILURE: Build failed with an exception.

Please can this be fixed?

@nikkieke nikkieke added the bug Something isn't working label Mar 2, 2024
@sydneyagcaoili
Copy link

Same problem here. This happened after upgrading my Flutter version to 3.19.1

@muj-i
Copy link
Contributor

muj-i commented Mar 3, 2024

This issue has been resolved and the fix has been included in pull request #178 . You can view the details of the pull request here.

  • Removed deprecated onChannelMediaRelayEvent callback from RtcEngineEventHandler.
  • fix the type mismatch issue while compiling.

To integrate these changes into your project and utilize the updated version of agora_uikit before it is merged, you can use the following configuration in your pubspec.yaml.

agora_uikit: 
  git:
    url: https://github.com/muj-i/VideoUIKit-Flutter.git

@muj-i
Copy link
Contributor

muj-i commented Mar 3, 2024

Same problem here. This happened after upgrading my Flutter version to 3.19.1

This issue is not related to the Flutter version. The problem occurred because the Agora RTC Engine package changed a bunch of type names and deprecated one named parameter.

I have tested it on the latest Flutter version (3.19.2), and now it is working as expected.

@nikkieke
Copy link
Author

nikkieke commented Mar 4, 2024

Same problem here. This happened after upgrading my Flutter version to 3.19.1

This issue is not related to the Flutter version. The problem occurred because the Agora RTC Engine package changed a bunch of type names and deprecated one named parameter.

I have tested it on the latest Flutter version (3.19.2), and now it is working as expected.

You're right. I have tested it now and it's working. No more compile errors. Thank you!

@nikkieke nikkieke closed this as completed Mar 4, 2024
@tadaspetra
Copy link
Contributor

tadaspetra commented Mar 4, 2024

@nikkieke Upgrading flutter with 3.19.2 works with agora_uikit version 1.3.7?

@tadaspetra
Copy link
Contributor

I am still seeing this issue with version 3.19.2

@tadaspetra tadaspetra reopened this Mar 4, 2024
@tadaspetra
Copy link
Contributor

agora_uikit version 1.3.8 is live. Should be fixed there. Reopen if still seeing this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants