错误: 程序包android.support.annotation不存在

@BindView(R.id.wavesfv) WaveSurfaceView waveSfv;时导入
import butterknife.BindView;
import butterknife.ButterKnife;
在debug的时候显示错误: 程序包android.support.annotation不存在,
在 import android.support.annotation.CallSuper;
import android.support.annotation.UiThread;build/debug文件夹中的xxx.java文件中显示
Cannot resolve symbol ‘annotation’,并且 @UiThread, @CallSuper注解标红,无法使用(本项目经过Android迁移到Androidx)。
解决方案:打开project Structure(快捷键Ctrl+Alt+Shift+s)选定你的项目,
 

你可能感兴趣的:(android运行流程)