adk-java icon indicating copy to clipboard operation
adk-java copied to clipboard

No Such method kotlin.collections.ArraysKt.copyInto for google.genai.version =1.8.0

Open manojkumarredbus opened this issue 1 year ago • 2 comments

Describe the bug Recent version upgrade of the google.genai 1.0.0. to 1.8.0 causes "Exception in thread "main" java.lang.NoSuchMethodError: 'byte[] kotlin.collections.ArraysKt.copyInto(byte[], byte[], int, int, int)'", when existing agents run.

To Reproduce Steps to reproduce the behavior:

Image Image

Expected behavior Running agents from command line are throwing this error. Ideally they should have had run.

Screenshots

Image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Java version:
  • ADK version(see maven dependency):

Additional context

Image

manojkumarredbus avatar Jul 15 '25 13:07 manojkumarredbus

Hello. Thank you for raising this! Would you mind sharing some reproduction? We needed to bump to >1.8.0 in a push to avoid the core library depending on Apache HTTP client, but I'd like to see if this issue has been resolved in the more recent java GenAI SDK releases as I don't see something similar here https://github.com/googleapis/java-genai/issues

Poggecci avatar Aug 14 '25 20:08 Poggecci

The issues seems to be addressed.

manojkumarredbus avatar Aug 18 '25 08:08 manojkumarredbus