欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

升级gradle到4.0报错(修改greendao-gradle-plugin:3.3.0解决)

程序员文章站 2022-09-02 20:50:10
升级gradle:4.0.1,报错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 som...

gradle:3.2.1升级到gradle:4.0.1,报错如下

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. 

修改greendao-gradle-plugin:3.3.0就解决

dependencies { classpath 'com.android.tools.build:gradle:4.0.1' classpath 'org.greenrobot:greendao-gradle-plugin:3.3.0' // add plugin } 

本文地址:https://blog.csdn.net/kingyc123456789/article/details/107769317

相关标签: Android