当前位置: 移动技术网 > IT编程>开发语言>Java > 升级gradle到4.0报错(修改greendao-gradle-plugin:3.3.0解决)

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

2020年08月05日  | 移动技术网IT编程  | 我要评论
升级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

如您对本文有疑问或者有任何想说的,请 点击进行留言回复,万千网友为您解惑!

相关文章:

验证码:
移动技术网