Android bug Unresolved reference: BR

新建项目后 导入viewBinding 编译后提示 Unresolved reference: BR

解决办法
app 目录下 build.gradle 中 plugins 节点
添加

id 'kotlin-kapt'

参考 https://stackoverflow.com/questions/77409050/could-not-find-androidx-corecore-ktx1-8-10

相关推荐

最近更新

  1. TCP协议是安全的吗?

    2024-04-11 11:50:04       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-04-11 11:50:04       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-04-11 11:50:04       19 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-04-11 11:50:04       20 阅读

热门阅读

  1. LeetCode hot100-24

    2024-04-11 11:50:04       13 阅读
  2. Day10:学习尚上优选项目

    2024-04-11 11:50:04       12 阅读
  3. c++和R语言数据类型的比较

    2024-04-11 11:50:04       15 阅读
  4. docker重启错误-重启命令一直卡住

    2024-04-11 11:50:04       13 阅读
  5. Linux命令学习—linux 的常用命令

    2024-04-11 11:50:04       13 阅读