kapt2和butterknife产生lint错误:id类型的预期资源

时间:2016-09-27 00:51:14

标签: android kotlin lint butterknife kapt2

当更新到kotlin 1.0.4和kapt2时,我得到以下lint-errors:

../generated/source/kapt2/withMapsWithAnalyticsForPlayRelease/org/ligi/passandroid/ui/pass_view_holder/EditViewHolder_ViewBinding.java:20: Expected resource of type id
  17     super(target, source);
  18 
  19     View view;
  20     view = Utils.findRequiredView(source, 2131624091, "method 'onNavigateClick'");
  21     view2131624091 = view;
  22     view.setOnClickListener(new DebouncingOnClickListener() {
../generated/source/kapt2/withMapsWithAnalyticsForPlayRelease/org/ligi/passandroid/ui/pass_view_holder/EditViewHolder_ViewBinding.java:28: Expected resource of type id
  25         target.onNavigateClick();
  26       }
  27     });
  28     view = Utils.findRequiredView(source, 2131624092, "method 'onCalendarClick'");
  29     view2131624092 = view;
  30     view.setOnClickListener(new DebouncingOnClickListener() {

有没有办法关闭这些文件的检查?我不想全局禁用此检查

0 个答案:

没有答案