gpt4 book ai didi

android-studio - 升级 gradle 到 v6.1.1 找不到方法

转载 作者:行者123 更新时间:2023-12-03 06:34:02 26 4
gpt4 key购买 nike

关闭。这个问题需要details or clarity .它目前不接受答案。












想改进这个问题?通过 editing this post 添加详细信息并澄清问题.

1年前关闭。




Improve this question




Unable to find method 'org.gradle.api.tasks.TaskInputs.property(Ljava/lang/String;Ljava/lang/Object;)Lorg/gradle/api/tasks/TaskInputs;'.
Possible causes for this unexpected error include:
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.

最佳答案

阅读此处的文档很有用,以防任何细节有助于解决问题:

https://docs.gradle.org/current/userguide/upgrading_version_5.html#changes_6.0

我的问题原来与特定的第三方插件有关,Greendao3GradlePlugin .

我也记录了我失败的步骤,以便其他人可以避免不必要的步骤。
./gradlew build失败并出现错误:Failed to notify project evaluation listener.
解决步骤:

  • 将 JDK 升级到版本 9:无法解决。
  • 下载安装JDK 9 : 无法解决。
  • 安装 SDK 30.0:无法解决。
  • 添加 configurations.all {
    resolutionStrategy.capabilitiesResolution.all { selectHighestVersion() }
    }
    到 build.gradle:无法解决。
  • 禁用所有第三方插件:无法解决。
  • 升级到 kotlin-gradle-plugin:1.3.72 : 无法解决。
  • ./gradlew --scan build显示的错误来自 Greendao3GradlePlugin ,表明这是一个特定于项目的错误。解决方案是解决这个特定问题。

  • 向有此问题的其他人推荐:使用 Gradle Build Scans深入了解您的构建以找到有问题的第三方插件。

    关于android-studio - 升级 gradle 到 v6.1.1 找不到方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62295218/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com