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

Error With Kotlin Version #19

Closed
rlee1990 opened this issue Jan 6, 2020 · 14 comments
Closed

Error With Kotlin Version #19

rlee1990 opened this issue Jan 6, 2020 · 14 comments

Comments

@rlee1990
Copy link

rlee1990 commented Jan 6, 2020

I'm receiving an error that states:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.10 and higher. The following dependencies do not satisfy the required version: project ':agora_rtm' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.0

@rlee1990
Copy link
Author

rlee1990 commented Jan 6, 2020

Flutter Doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.12.13+hotfix.5, on Microsoft Windows [Version 10.0.18362.535], locale en-US)

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[√] Android Studio (version 3.5)
[√] VS Code (version 1.41.1)
[√] Connected device (1 available)

• No issues found!

@LichKing-2234
Copy link
Collaborator

please remove ext.kotlin_version = '1.3.0' from your agora_rtom/build.gradle
we will modify and upload later

@LichKing-2234
Copy link
Collaborator

try to use version 0.9.9

@rlee1990
Copy link
Author

rlee1990 commented Jan 7, 2020

@LichKing-2234 are u asking to have me try kotlin version 0.9.9 or the plugin?

@LichKing-2234
Copy link
Collaborator

plugin

@rlee1990
Copy link
Author

rlee1990 commented Jan 8, 2020

@LichKing-2234 thanks that worked.

@rlee1990 rlee1990 closed this as completed Jan 8, 2020
@rlee1990 rlee1990 reopened this Jan 8, 2020
@rlee1990
Copy link
Author

rlee1990 commented Jan 8, 2020

@LichKing-2234 Now when I try to launch I get this error
[ERROR:flutter/shell/platform/android/platform_view_android_jni.cc(39)] java.lang.UnsatisfiedLinkError: No implementation found for int io.agora.rtc.internal.RtcEngineImpl.nativeLog(int, java.lang.String) (tried Java_io_agora_rtc_internal_RtcEngineImpl_nativeLog and Java_io_agora_rtc_internal_RtcEngineImpl_nativeLog__ILjava_lang_String_2) E/flutter (13057): at io.agora.rtc.internal.RtcEngineImpl.nativeLog(Native Method) E/flutter (13057): at io.agora.rtc.internal.Logging.log(Logging.java:25) E/flutter (13057): at io.agora.rtc.internal.Logging.i(Logging.java:49) E/flutter (13057): at io.agora.rtc.internal.RtcEngineImpl.checkIfInUIThread(RtcEngineImpl.java:155) E/flutter (13057): at io.agora.rtc.RtcEngine.CreateRendererView(RtcEngine.java:881) E/flutter (13057): at io.agora.agorartcengine.AgoraRenderViewFactory.create(AgoraRenderViewFactory.java:22) E/flutter (13057): at io.flutter.plugin.platform.SingleViewPresentation.onCreate(SingleViewPresentation.java:174) E/flutter (13057): at android.app.Dialog.dispatchOnCreate(Dialog.java:550) E/flutter (13057): at android.app.Dialog.show(Dialog.java:391) E/flutter (13057): at android.app.Presentation.show(Presentation.java:267)

@rlee1990
Copy link
Author

rlee1990 commented Jan 8, 2020

If I remove just that plugin it runs for the live stream.

@LichKing-2234
Copy link
Collaborator

it looks like the system can't find the RTC SDK .so file, what have you done?

@rlee1990
Copy link
Author

rlee1990 commented Jan 8, 2020

@LichKing-2234 i just imported the package in and added the items just as they were added in the example but when I click the button that launches the live stream and the rtc channel it crashes with that error

@rlee1990
Copy link
Author

rlee1990 commented Jan 8, 2020

@LichKing-2234 this is what I do:
Future<void> _initAgoraRtcEngine() async { _client = await AgoraRtmClient.createInstance(HBTV.API_KEY); await AgoraRtcEngine.create(HBTV.API_KEY); await AgoraRtcEngine.registerLocalUserAccount( {"appId": HBTV.API_KEY, "userAccount": widget.uid}); await AgoraRtcEngine.enableVideo(); await AgoraRtcEngine.enableAudio(); await AgoraRtcEngine.setChannelProfile(ChannelProfile.LiveBroadcasting); await AgoraRtcEngine.setClientRole(ClientRole.Broadcaster); }

@rlee1990
Copy link
Author

rlee1990 commented Jan 9, 2020

@LichKing-2234 any updates on this?

@LichKing-2234
Copy link
Collaborator

LichKing-2234 commented Jan 10, 2020

make sure AgoraRtcEngine init before AgoraRtmClient, this is a bug, we will fix later

@rlee1990
Copy link
Author

@LichKing-2234 That works thanks. Any timetable on the fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants