Fix Gradle sync - align Kotlin, KSP, and Hilt versions#8
Conversation
Co-authored-by: neteinstein <910242+neteinstein@users.noreply.github.com>
|
@copilot Still the same error:
[Incubating] Problems report is available at: file:///home/runner/work/pick-a-name/pick-a-name/build/reports/problems/problems-report.html Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. This is an indicator that the Hilt Gradle Plugin is using a different class loader because See google/dagger#3965 for more details. |
|
@copilot to fix the compilation errors follow this: Make sure that you choose a KSP version aligned with your project's Kotlin version. -> https://developer.android.com/build/migrate-to-ksp What worked in other projects: In project: id("org.jetbrains.kotlin.android") version "1.8.10" apply false //downgraded from 1.9.0 to 1.8.10 |
Co-authored-by: neteinstein <910242+neteinstein@users.noreply.github.com>
Fixed in commit cacf07c. I've aligned the versions as you suggested:
The KSP version now follows the correct pattern Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Gradle sync failing with
Unable to load class 'com.google.devtools.ksp.gradle.KspTaskJvm'due to incompatible dependency versions.Changes
2.3.0→2.0.21(Hilt 2.52 doesn't support Kotlin 2.3.0; downgraded to compatible version)2.3.0→2.0.21-1.0.25(aligned with Kotlin version using correct formatkotlin-version-ksp-plugin-version)8.13.2→8.5.2(8.13.2 unavailable in Maven repos)maven { url = uri("https://maven.google.com") }→google()(idiomatic syntax)All versions now properly aligned per the Android KSP migration guide.
Version Compatibility
Original prompt
<issue_description>Gradle sync is failing:
Unable to load class 'com.google.devtools.ksp.gradle.KspTaskJvm'
com.google.devtools.ksp.gradle.KspTaskJvm
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)</issue_description>
Comments on the Issue (you are @copilot in this section)
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.