api.BaseVariant.getOutputs()Ljava/util/List异常

近期在用Android Studio3.0开发中过程中使用了Butterknife 8.8.1的版本,出现了如下的异常:

Error:Unable to find method 'com.android.build.gradle.api.BaseVariant.getOutputs()Ljava/util/List;'.
Possible causes for this unexpected error include:

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

造成此问题的原因是Android Studio 3.0和Butterknife的新版本存在冲突,解决方法是将Butterknife 8.8.1版本换成8.4.0版本。

你可能感兴趣的:(api.BaseVariant.getOutputs()Ljava/util/List异常)