Skip to content

Unable to build gradle #167252

Discussion options

You must be logged in to vote

Hi! 👋
This error usually happens due to an incompatible Kotlin plugin and Gradle version.

✅ Fix Steps:

  1. Update Kotlin Plugin in build.gradle (Project):
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.10"
  1. Update Gradle Version in gradle-wrapper.properties:
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-all.zip
  1. Run:
./gradlew clean
./gradlew --stop
  1. Restart Android Studio and sync again.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@brainyleaf
Comment options

Answer selected by brainyleaf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Codespaces Your development environment, in the cloud. Run VS Code and code on GitHub's cloud platform, Question Ask and answer questions about GitHub features and usage
3 participants