1.dependencies中添加依赖
implementation 'com.jakewharton:butterknife:9.0.0-SNAPSHOT'
annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0-SNAPSHOT'
2.buildscript->repositories和allprojects->repositories中均添加
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
3.Sync,大功告成= =;
如果报compileClasspath': Could not resolve com.github.franmontiel:PersistentCookieJar:v1.0.1.
第一步记载中需先在project的gradle中加入
maven { url "https://jitpack.io" }
完整版如下:
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Sync,大功告成= =;