最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

the new version of Android studio does not run the project that was running in the old version - Stack Overflow

programmeradmin7浏览0评论

I updated Android Studio and now the project that worked well in the old Studio is not going to fail.:

Unable to find method ''.jetbrains.kotlin.buildtools.api.SourcesChanges .jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile.getChangedFiles$default(.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile, .gradle.work.InputChanges, java.util.List, kotlin.jvm.functions.Function1, int, java.lang.Object)'' '.jetbrains.kotlin.buildtools.api.SourcesChanges .jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile.getChangedFiles$default(.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile, .gradle.work.InputChanges, java.util.List, kotlin.jvm.functions.Function1, int, java.lang.Object)'

Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

Re-download dependencies and sync project (requires network) The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.

Stop Gradle build processes (requires restart) Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.

In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

You can click on: Re-download dependencies and sync project (requires network) and Stop Gradle build processes (requires restart) Does not help, what can it be and how to solve it?

I updated Android Studio and now the project that worked well in the old Studio is not going to fail.:

Unable to find method ''.jetbrains.kotlin.buildtools.api.SourcesChanges .jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile.getChangedFiles$default(.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile, .gradle.work.InputChanges, java.util.List, kotlin.jvm.functions.Function1, int, java.lang.Object)'' '.jetbrains.kotlin.buildtools.api.SourcesChanges .jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile.getChangedFiles$default(.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile, .gradle.work.InputChanges, java.util.List, kotlin.jvm.functions.Function1, int, java.lang.Object)'

Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

Re-download dependencies and sync project (requires network) The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.

Stop Gradle build processes (requires restart) Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.

In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

You can click on: Re-download dependencies and sync project (requires network) and Stop Gradle build processes (requires restart) Does not help, what can it be and how to solve it?

Share Improve this question asked Jan 18 at 14:26 BasilBasil 691 silver badge7 bronze badges 2
  • Please edit your question to provide a minimal reproducible example of your build files. – tyg Commented Jan 18 at 14:34
  • Understood, will do it as quick as I can. Thanks. – Basil Commented Jan 18 at 15:34
Add a comment  | 

1 Answer 1

Reset to default 1

the Android Gradle plugin might get updated when you update android studio so it might be not compatible with your kotlin version.

take a look at kotlin multiplatform compatibility guide

and try to downgrade the agp version to the old one or upgrade the kotlin version maybe.

take a look also at this it might be helpful Unable to find method ''java.io.File > .jetbrains.kotlin.gradle.tasks.KotlinCompile.getDestinationDir()

发布评论

评论列表(0)

  1. 暂无评论