之前是添加butterknife直接出现错误,现在是运行错误,仔细查看错误信息,如下:

 

butterknife使用Could not get unknown property 'packageForR' for task ':app:processDebugResources'

 看到最后,看到有关butterknife相关的提示,应该还是butterknife中的错误

butterknife使用Could not get unknown property 'packageForR' for task ':app:processDebugResources'

 由于想到之前有些版本是不需要添加

apply plugin: 'com.jakewharton.butterknife'
这行的,就它先注释掉,最后再次运行,Okl啦。

相关文章:

  • 2021-09-04
  • 2021-12-29
  • 2021-05-03
  • 2021-11-06
  • 2022-01-23
  • 2021-05-14
  • 2021-08-31
猜你喜欢
  • 2022-12-23
  • 2021-08-03
  • 2021-07-12
  • 2021-04-02
  • 2021-05-13
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案