I've mostly been testing Koog on JVM so far but tr...
# koog-agentic-framework
j
I've mostly been testing Koog on JVM so far but trying to use in KMP code now. That works fine for JVM as before but when I try to run Android app I'm getting following build error (with dependency on
ai.koog:koog-agents
0.4.2 in
commonMain
in KMP module)
Copy code
Duplicate class io.modelcontextprotocol.kotlin.sdk.LibVersionKt found in modules kotlin-sdk-client-jvm-0.7.0.jar -> kotlin-sdk-client-jvm-0.7.0 (io.modelcontextprotocol:kotlin-sdk-client-jvm:0.7.0) and kotlin-sdk-core-jvm-0.7.0.jar -> kotlin-sdk-core-jvm-0.7.0 (io.modelcontextprotocol:kotlin-sdk-core-jvm:0.7.0)
p
Thank you for pointing out the issue We’ve already fixed it in kotlin mcp sdk version 0.7.2. This fix will be included in the next Koog release
👍 1
j
I updated local version of koog here to use MCP 0.7.2 as a test....seeing following now but perhaps something in my setup
Copy code
Execution failed for task ':composeApp:mergeDebugJavaResource'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
   > 6 files found with path 'META-INF/INDEX.LIST' from inputs:
      - io.netty:netty-handler:4.1.118.Final/netty-handler-4.1.118.Final.jar
      - io.netty:netty-transport-native-unix-common:4.1.118.Final/netty-transport-native-unix-common-4.1.118.Final.jar
      - io.netty:netty-codec:4.1.118.Final/netty-codec-4.1.118.Final.jar
      - io.netty:netty-transport:4.1.118.Final/netty-transport-4.1.118.Final.jar
      - io.netty:netty-resolver:4.1.118.Final/netty-resolver-4.1.118.Final.jar
      - io.netty:netty-buffer:4.1.118.Final/netty-buffer-4.1.118.Final.jar
     Adding a packaging block may help, please refer to
     https://developer.android.com/reference/tools/gradle-api/com/android/build/api/dsl/Packaging
     for more information
I noticed the demo app in koog repo has following.....added that here and can build/run Android app now
Copy code
configurations.all {
    // FIXME exclude netty from Koog dependencies?
    exclude(group = "io.netty", module = "*")
}