Solvedbutterknife android studio 3.2 canary with androidx not compiling (Today is google IO 2018)

error: package android.support.annotation does not exist

The imports inside the auto generated _ViewBinding.java is

import android.support.annotation.CallSuper;

but it should be

import androidx.annotation.annotation.CallSuper;

16 Answers

✔️Accepted Answer

repositories {
    maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
implementation 'com.jakewharton:butterknife:9.0.0-SNAPSHOT'
annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0-SNAPSHOT'

Other Answers:

Android studio did add these 2 lines for me. Did not work.