Skip to content
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

Unable to update to kotlin native 1.3.41 #3182

Closed
mikezliu opened this issue Jul 12, 2019 · 6 comments

Comments

@mikezliu
Copy link

commented Jul 12, 2019

I've been stuck on Kotlin 1.3.21 for a while and want to update to the latest version of Kotlin (1.3.41)!

After incrementing Kotlin to 1.3.41, I get the following error:

Unable to find method 'org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeCompilation.getLinkTask(Lorg/jetbrains/kotlin/gradle/plugin/mpp/NativeOutputKind;Lorg/jetbrains/kotlin/gradle/plugin/mpp/NativeBuildType;)Lorg/jetbrains/kotlin/gradle/tasks/KotlinNativeLink;'.
Possible causes for this unexpected error include:
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

How can I debug this? I have tried re-downloading dependencies but no luck

@mikezliu mikezliu changed the title Updating to kotlin 1.3.41 Unable to update to kotlin native 1.3.41 Jul 12, 2019

@olonho

This comment has been minimized.

Copy link
Contributor

commented Jul 12, 2019

Which version of Gradle are you using?

@mikezliu

This comment has been minimized.

Copy link
Author

commented Jul 14, 2019

Gradle wrapper 5.4.1
Gradle tools version 3.3.0

I have tried to update to gradle wrapper 5.5.1, gradle tools 3.4.2 but got the same error.

@michalharakal

This comment has been minimized.

Copy link

commented Jul 14, 2019

Deleting of all cache folders helped in my case with similar issues.

  • ~/.gradle/caches
  • ~/.konan
  • .gradle folder in your project's folder
@ilmat192

This comment has been minimized.

Copy link
Collaborator

commented Jul 15, 2019

The getLinkTask method was deprecated in 1.3.30 and removed in 1.3.40. Use the binaries DSL instead.

@mikezliu

This comment has been minimized.

Copy link
Author

commented Jul 15, 2019

I'm not using getLinkTask myself - I'm guessing one of my libraries (ktor, serialization, etc.) is using it

@mikezliu mikezliu closed this Jul 15, 2019

@ilmat192

This comment has been minimized.

Copy link
Collaborator

commented Jul 16, 2019

I'm guessing one of my libraries (ktor, serialization, etc.) is using it

As far as I know they don't. May be some plugin? Could you share a link to your project or at least provide your build script?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.