kotlin-dsl-samples | Samples builds using the Gradle Kotlin DSL | Plugin library
kandi X-RAY | kotlin-dsl-samples Summary
kandi X-RAY | kotlin-dsl-samples Summary
Welcome! The Gradle Kotlin DSL provides support for writing [Gradle] build scripts using JetBrains' [Kotlin] language. It aims to provide Gradle users with a rich, flexible and statically-typed approach to developing build logic in conjunction with the best IDE and tooling experience possible.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of kotlin-dsl-samples
kotlin-dsl-samples Key Features
kotlin-dsl-samples Examples and Code Snippets
Community Discussions
Trending Discussions on kotlin-dsl-samples
QUESTION
When I create an empty project with Gradle Kotlin DSL, even without any modifications, it would prompt Cannot access script base class 'org.gradle.kotlin.dsl.KotlinBuildScript'. Check your module classpath for missing or conflicting dependencies
The project can run, but the syntax highlighting and autocompletion for build.gradle.kts
don't work.
- https://github.com/gradle/kotlin-dsl-samples/issues/1308
- Changing gradle executable to
gradle-kotlin-dsl-5.2-20190122225509+0000-all.zip
- Changing gradle executable to
- https://youtrack.jetbrains.com/issue/KT-38296
- Remove empty SDKs in Project structure dialog
- Invalidate caches and restart
- Reinstalling Java 11
brew install java11
- Switching to official oracle JDK 15
brew install oracle-jdk
- https://youtrack.jetbrains.com/issue/KT-41141
- Re-adding SDKs in the SDK menu
- Adding
/Kotlin/kotlinc/lib
to Kotlin SDK's classpath
- http://youtrack.jetbrains.com/issue/IDEA-245027
- Deleting the cache folder manually
ANSWER
Answered 2021-Jan-21 at 16:25Answer credit to @AlexeyBelkov - Answered here: https://youtrack.jetbrains.com/issue/KTIJ-893
The syntax highlighting feature worked after:
- Delete
~/.gradle/caches
- Delete
~/Library/Application\ Support/Library/JetBrains/IntelliJIdea2020.3
- Delete
/.gradle
- Delete
/.idea
- Start IDEA and reimport the project.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install kotlin-dsl-samples
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page