Execution failed for task ':agora_rtm:compileDebugKotlin'.
Closed this issue · 1 comments
Running Gradle task 'assembleDebug'...
e: /Users/pct93/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/agora_rtm-1.0.0/android/src/main/kotlin/io/agora/agorartm/AgoraRtmPlugin.kt: (13, 7): Redeclaration: AgoraRtmPlugin
e: /Users/pct93/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/agora_rtm-1.0.0/android/src/main/kotlin/io/agora/agorartm/RTMChannel.kt: (8, 7): Redeclaration: RTMChannel
e: /Users/pct93/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/agora_rtm-1.0.0/android/src/main/kotlin/io/agora/agorartm/RTMClient.kt: (9, 7): Redeclaration: RTMClient
e: /Users/pct93/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/agora_rtm-1.0.1/android/src/main/kotlin/io/agora/agorartm/AgoraRtmPlugin.kt: (15, 7): Redeclaration: AgoraRtmPlugin
e: /Users/pct93/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/agora_rtm-1.0.1/android/src/main/kotlin/io/agora/agorartm/AgoraRtmPlugin.kt: (29, 28): No value passed for parameter 'registrar'
e: /Users/pct93/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/agora_rtm-1.0.1/android/src/main/kotlin/io/agora/agorartm/AgoraRtmPlugin.kt: (29, 28): No value passed for parameter 'channel'
e: /Users/pct93/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/agora_rtm-1.0.1/android/src/main/kotlin/io/agora/agorartm/AgoraRtmPlugin.kt: (30, 17): Val cannot be reassigned
e: /Users/pct93/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/agora_rtm-1.0.1/android/src/main/kotlin/io/agora/agorartm/AgoraRtmPlugin.kt: (30, 22): Cannot access 'registrar': it is private in 'AgoraRtmPlugin'
e: /Users/pct93/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/agora_rtm-1.0.1/android/src/main/kotlin/io/agora/agorartm/AgoraRtmPlugin.kt: (31, 17): Unresolved reference: initPlugin
e: /Users/pct93/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/agora_rtm-1.0.1/android/src/main/kotlin/io/agora/agorartm/RTMChannel.kt: (8, 7): Redeclaration: RTMChannel
e: /Users/pct93/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/agora_rtm-1.0.1/android/src/main/kotlin/io/agora/agorartm/RTMClient.kt: (9, 7): Redeclaration: RTMClient
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':agora_rtm:compileDebugKotlin'.
Compilation error. See log for more details
-
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. -
Get more help at https://help.gradle.org
BUILD FAILED in 38s
Exception: Gradle task assembleDebug failed with exit code 1
After clean project it's working