Unable to load class 'org.gradle.kotlin.dsl.precompile.v1.PrecompiledProjectScript'.
See original GitHub issueHi. made a new project, gradle version 3.5.3 (<<< EDIT: actually it is 5.4.1) added in the the module gradle file:
buildscript {
repositories {
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "com.yelp.codegen:plugin:1.3.0"
}
}
apply plugin: "com.yelp.codegen.plugin"
generateSwagger {
platform = "kotlin"
packageName = "com.yelp.codegen.samples"
inputFile = file("./sample_specs.json")
outputDir = file("./src/main/java/")
}
but I get this error: Unable to load class ‘org.gradle.kotlin.dsl.precompile.v1.PrecompiledProjectScript’.
can somebdoy help me ? thx!
Issue Analytics
- State:
- Created 4 years ago
- Comments:17 (2 by maintainers)
Top Results From Across the Web
org.gradle.kotlin.kotlin-dsl.precompiled-script-plugins
Using the plugins DSL: plugins { id "org.gradle.kotlin.kotlin-dsl.precompiled-script-plugins" version "4.0.0-alpha02" } ...
Read more >Cannot access script base class 'org.gradle.kotlin.dsl ...
Click "Load Script Configurations" when it appears after re-indexing. ... Open Android Studio and configure JDK in Gradle Settings (Project ...
Read more >org/jetbrains/kotlin/cli/common/PropertiesKt
When I recently used Idea to create a project based on toklin+gradle+springboot, I always prompt when I execute Sync for the first time: ......
Read more >buildSrc:generatePrecompiledScriptPluginAccessors ...
Upgraded to AGP 7.2.0-rc01 from AGP 7.1.3 , and encountered the following exception during a gradle sync:
Read more >Gradle build for Kotlin project fails with "Unable to load class ...
I've attached the idea.log as mentioned in the error. There is a stacktrace as well: org/jetbrains/kotlin/samWithReceiver/gradle/SamWithReceiverGradleSubplugin ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
To generate code you need to run
/gradlew generateSwagger
. Be aware the test project does actually not build because swagger spec file isn’t present.PR #111 fixed the issue and in the next days we’ll provide a new plugin release that restores Gradle 5+ compatibility.
I’m closing this for know as the issue has been addressed and a temporary workaround has been identified.
so I changed the gradle wrapper here distributionUrl=https://services.gradle.org/distributions/gradle-6.1-all.zip to 6.1
It compiles. but I do not see any generated code