Skip to content
This repository has been archived by the owner on Aug 3, 2020. It is now read-only.

Issue with Kotlin version requirements when using the plugin in Flutter project #15

Closed
Joran-Dob opened this issue Apr 4, 2019 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@Joran-Dob
Copy link
Member

Joran-Dob commented Apr 4, 2019

Describe the bug
There is a mismatch in version requirements when using this pub package in a new Flutter project.

Expected behaviour
This Flutter package should work out of the box when creating a new project

Smartphone (please complete the following information):

  • Device: ALL
  • OS: Android
  • Browser [e.g. stock browser, safari]
  • Version 0.0.4

Additional context
This is an issue created for the problem found in #14

@Joran-Dob Joran-Dob self-assigned this Apr 4, 2019
@Joran-Dob Joran-Dob added the bug Something isn't working label Apr 4, 2019
@zacwolfe
Copy link

zacwolfe commented Apr 4, 2019

FYI, here's the full error I'm seeing in the console:

FAILURE: Build failed with an exception.

  • What went wrong:
    The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.0 and higher.
    The following dependencies do not satisfy the required version:
    project ':spotify_playback' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.51

@zacwolfe
Copy link

zacwolfe commented Apr 4, 2019

I resolved this by updating kotlin version to 1.3.21 in the spotify_playback plugin
ext.kotlin_version = '1.3.21'

I also had to switch to jdk8:

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"

However, now I'm seeing this build error:

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine the dependencies of task ':app:preDebugBuild'.
    Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
    Could not find :spotify-app-remote-release-0.6.1:.
    Searched in the following locations: file:/Users/zacw/code/songfoo/songfoo_client/android/app/libs/spotify-app-remote-release-0.6.1.aar
    Required by:
    project :app > project :spotify_playback

@zacwolfe
Copy link

zacwolfe commented Apr 4, 2019

FYI, Copying the file manually into my project's local android/app/libs directory resolved the build issue.

@Joran-Dob
Copy link
Member Author

Created a pull for this, will merge in a bit #18.

If you still have this issue please reopen the issue.

@oscarshaitan
Copy link

Hi @Joran-Dob I update the plugin and keep showing the error
project ':spotify_playback' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.51

@Joran-Dob
Copy link
Member Author

Joran-Dob commented Apr 7, 2019

@oscarshaitan could you please provide the full log! I think this is related to the kotlin issue (#18) which is closed and fixed but I did not do an update yet on pub I will do that in an bit 😊

@Joran-Dob
Copy link
Member Author

Published a new version on pub, should resolve this issue. See version 0.0.7

@qreate qreate locked as resolved and limited conversation to collaborators Apr 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants