Skip to content

Execution failed for task ':react-native-async-storage_async-storage:kspDebugKotlin'. #1185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Samykills opened this issue Feb 14, 2025 · 3 comments

Comments

@Samykills
Copy link

@krizzu can you help here, i am trying this but having some hard time mix matching the right versions -

RN version - 0.75.4

my gradle.properties

AsyncStorage_next_roomVersion=2.6.1
AsyncStorage_next_kspVersion=1.9.25-1.0.20

android/build.gradle

Image

warning i get on clean build -

Configure project :react-native-async-storage_async-storage
ksp-1.9.25-1.0.20 is too old for kotlin-2.0.21. Please upgrade ksp or downgrade kotlin-gradle-plugin to 1.9.25.
ksp-1.9.25-1.0.20 is too old for kotlin-2.0.21. Please upgrade ksp or downgrade kotlin-gradle-plugin to 1.9.25.
ksp-1.9.25-1.0.20 is too old for kotlin-2.0.21. Please upgrade ksp or downgrade kotlin-gradle-plugin to 1.9.25.
ksp-1.9.25-1.0.20 is too old for kotlin-2.0.21. Please upgrade ksp or downgrade kotlin-gradle-plugin to 1.9.25.
ksp-1.9.25-1.0.20 is too old for kotlin-2.0.21. Please upgrade ksp or downgrade kotlin-gradle-plugin to 1.9.25.
ksp-1.9.25-1.0.20 is too old for kotlin-2.0.21. Please upgrade ksp or downgrade kotlin-gradle-plugin to 1.9.25.
ksp-1.9.25-1.0.20 is too old for kotlin-2.0.21. Please upgrade ksp or downgrade kotlin-gradle-plugin to 1.9.25.
ksp-1.9.25-1.0.20 is too old for kotlin-2.0.21. Please upgrade ksp or downgrade kotlin-gradle-plugin to 1.9.25.
ksp-1.9.25-1.0.20 is too old for kotlin-2.0.21. Please upgrade ksp or downgrade kotlin-gradle-plugin to 1.9.25.
ksp-1.9.25-1.0.20 is too old for kotlin-2.0.21. Please upgrade ksp or downgrade kotlin-gradle-plugin to 1.9.25.

Error on building -

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-async-storage_async-storage:kspDebugKotlin'.
'org.jetbrains.kotlin.incremental.ChangedFiles com.google.devtools.ksp.gradle.KspTaskJvm.getChangedFiles(org.gradle.work.InputChanges, java.util.List)'

Originally posted by @Samykills in #1157

@powfix
Copy link

powfix commented Feb 28, 2025

I'm experiencing the same issue.

@NoAndThen
Copy link

Anyone know how to resolve this yet, i'm facing the same issue?

@dylanhillier
Copy link

dylanhillier commented Apr 18, 2025

I believe this can be resolved by specifying the kotlin and ksp versions in android/gradle.properties as per the:

Eg.

android/build.gradle

buildscript {
    ext {
        ...
        kotlinVersion =  '2.0.21'
        ... 
    }

android/gradle.properties

...
# WARN: The `kotlinVersion` specified here should match `android/build.gradle`
# WANR: The `kspVersion` specified here should match the `kotlinVersion`.
AsyncStorage_useNextStorage=true
AsyncStorage_kotlinVersion=2.0.21
AsyncStorage_next_kspVersion=2.0.21-1.0.28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants