gmazzo/gradle-buildconfig-plugin

failed to download

Pirmuhammad9 opened this issue · 5 comments

Hi, i faced this "unable to find method ''java.io.File com.squareup.kotlinpoet.FileSpec.writeTo(java.io.File)''
'java.io.File com.squareup.kotlinpoet.FileSpec.writeTo(java.io.File)'" issues,
Is there any solution

Is possibly a duplicated of #125? This is usually caused by another plugin added in a high order classloader (root project or buildSrc) that has KotlinPoet dependency outdated

do you know any plugins that may cause it

Nope, but you should be able to figure out by inspecting the build dependencies with a Gradle scan

I'm closing it because the same reason than #125. This is not actually an issue with this plugin, but a configuration clash with another one

Is possibly a duplicated of #125?

By the way @Pirmuhammad9 , I meant #131, check if its workaround works for you. It should

buildscript {
  dependencies {
    // Yuck. Need to force kotlinpoet:1.16.0 as that is what buildconfig uses.
    // CMP 1.6.0-x uses kotlinpoet:1.14.x. Gradle seems to force 1.14.x which then breaks
    // buildconfig.
    classpath("com.squareup:kotlinpoet:1.16.0")
  }
}