781flyingdutchman/background_downloader

Gradle build fails when running flutter run because of a missing library

Closed this issue · 1 comments

Describe the bug

Gradle build fails when running flutter run because of a missing library Could not find org.jetbrains.kotlin:kotlin-serialization-compiler-plugin-embeddable:1.8.22.

To Reproduce
Steps to reproduce the behavior:

Installed the plugin and run the command flutter run

Expected behavior
A clear and concise description of what you expected to happen.

Logs

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':background_downloader:compileDebugKotlin'.
> Could not resolve all files for configuration ':background_downloader:kotlinCompilerPluginClasspathDebug'.
   > Could not find org.jetbrains.kotlin:kotlin-serialization-compiler-plugin-embeddable:1.8.22.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-serialization-compiler-plugin-embeddable/1.8.22/kotlin-serialization-compiler-plugin-embeddable-1.8.22.pom
       - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-serialization-compiler-plugin-embeddable/1.8.22/kotlin-serialization-compiler-plugin-embeddable-1.8.22.pom
       - https://storage.googleapis.com/download.flutter.io/org/jetbrains/kotlin/kotlin-serialization-compiler-plugin-embeddable/1.8.22/kotlin-serialization-compiler-plugin-embeddable-1.8.22.pom
     Required by:
         project :background_downloader

Additional context

Flutter - 3.24.5
Dart - 3.5.4
Gradle - 8.6.1

You need to use Kotlin 1.9.20, see here