能否提供一份gradle:3.1.3下的代码?
来源:7-4 用户状态与用户信息的回调封装
BobZheng
2018-07-31
当project-build.gradle变为3.1.3后,配置如下:
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.jakewharton:butterknife-gradle-plugin:8.8.1'
classpath 'com.jakewharton:butterknife-gradle-plugin:9.0.0-SNAPSHOT'
整个项目就跑不起来了,出现:
Unable to find method 'com.android.build.gradle.api.BaseVariant.getOutputs()Ljava/util/List;'.
Possible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)</li><li>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)</li><li>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.</li></ul>In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
老师能否提供一份这个环境下可以运行的代码?
1回答
-
BobZheng
提问者
2018-07-31
在微信群里下载:FastEC-升级去除数据库并修复首页渐变BUG.zip,看似已全面移除butterknife,用这个项目文件就可以了。
012019-03-10
相似问题