Unable to find method 'com.andro
2019-04-04 本文已影响0人
Everglow_111
Android Studio 3.0
原因 butterknife 配置问题:
解决办法:
删除
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
classpath 'org.greenrobot:greendao-gradle-plugin:3.2.0'
//classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
//classpath 'com.jakewharton:butterknife-gradle-plugin:8.6.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
和 App build.gradle
apply plugin: 'com.android.application'
apply plugin: 'org.greenrobot.greendao'
//apply plugin: 'com.jakewharton.butterknife'
然后重新构建一次