Skip to content

java.lang.NoSuchMethodError: 'java.io.OutputStream com.google.devtools.ksp.processing.CodeGenerator.createNewFile$default(com.google.devtools.ksp.processing.CodeGenerator, com.google.devtools.ksp.processing.Dependencies, java.lang.String, java.lang.String, java.lang.String, int, java.lang.Object)' #1476

Closed as not planned
@kakinIA

Description

it was happened in using ksp

public fun FileSpec.writeTo(
  codeGenerator: CodeGenerator,
  dependencies: Dependencies
)

the exception stack is

java.lang.NoSuchMethodError: 'java.io.OutputStream com.google.devtools.ksp.processing.CodeGenerator.createNewFile$default(com.google.devtools.ksp.processing.CodeGenerator, com.google.devtools.ksp.processing.Dependencies, java.lang.String, java.lang.String, java.lang.String, int, java.lang.Object)'
	at com.squareup.kotlinpoet.ksp.OriginatingKSFilesKt.writeTo(originatingKSFiles.kt:128)

kotlin version: 1.6.21
ksp version: 1.6.21-1.0.5
kotlinpoet version: 1.12.0
gradle: 7.2

Are the versions not suitable?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions