https://kotlinlang.org logo
d

dave08

06/19/2023, 11:33 AM
Anyone know how to solve
Cannot use @TaskAction annotation on method AbstractKotlinCompile.execute() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method.
when upgrading from an older AGP version to 8.0.2?
a

Alexander.Likhachev

06/19/2023, 12:09 PM
Are you using Kotlin 1.5 or older?
If you want to use Gradle 8, you have to upgrade Kotlin in your project
d

dave08

06/19/2023, 12:11 PM
Yeah, it's using 1.5... What's the minimum I need to upgrade to?
a

Alexander.Likhachev

06/19/2023, 12:12 PM
for this particular problem it’s 1.6: https://youtrack.jetbrains.com/issue/KT-47867
👍 1
d

dave08

06/19/2023, 12:22 PM
Thanks! That solved the problem!
1412 Views