-
Notifications
You must be signed in to change notification settings - Fork 73
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
Comments
Same problem here. This happened after upgrading my Flutter version to 3.19.1 |
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.
To integrate these changes into your project and utilize the updated version of
|
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 Upgrading flutter with 3.19.2 works with |
I am still seeing this issue with version 3.19.2 |
|
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?
The text was updated successfully, but these errors were encountered: