781flyingdutchman / background_downloader

Flutter plugin for file downloads and uploads
Other
165 stars 76 forks source link

Could not find org.jetbrains.kotlin:kotlin-serialization-compiler-plugin-embeddable:1.7.10. #348

Closed hongfeiyang closed 4 months ago

hongfeiyang commented 4 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior: Include this package in any android projects. It will try to resolve to a kotlin-serialisation-compiler-plugin-embeddable:1.7.10 which does not exist in maven central. (Maven central has 1.9 and above)

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

Logs If possible, include logs that capture the issue:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':background_downloader:compileDebugKotlin'.
> Error while evaluating property 'filteredArgumentsMap' of 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.7.10.
        Searched in the following locations:
          - https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-serialization-compiler-plugin-embeddable/1.7.10/kotlin-serialization-compiler-plugin-embeddable-1.7.10.pom
          - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-serialization-compiler-plugin-embeddable/1.7.10/kotlin-serialization-compiler-plugin-embeddable-1.7.10.pom
          - https://storage.googleapis.com/download.flutter.io/org/jetbrains/kotlin/kotlin-serialization-compiler-plugin-embeddable/1.7.10/kotlin-serialization-compiler-plugin-embeddable-1.7.10.pom
        Required by:
            project :background_downloader

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

Code If possible, paste in the code snippet where you interact with the package:

Code

Additional context Add any other context about the problem here.

781flyingdutchman commented 4 months ago

You have to use Kotlin 1.9. you'll have to Google how to change the Gradle build file, as it depends a bit on what version of Gradle plugin you use

hongfeiyang commented 4 months ago

You have to use Kotlin 1.9. you'll have to Google how to change the Gradle build file, as it depends a bit on what version of Gradle plugin you use

Thank you so much, I upgraded my kotlin version to 1.9.0 and included org.jetbrains.kotlin.plugin.serialization 1.9.0 in my project and it all works fine now ;) thanks

781flyingdutchman commented 4 months ago

Great - I suggest going with 1.9.20 and I believe you then don't need to separately import the serialization plugin. Kotlin is already at 2.0 now, so even 1.9.0 is relatively old