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

相关推荐
2501_9159184144 分钟前
iOS 混淆与 IPA 加固一页式行动手册(多工具组合实战 源码成品运维闭环)
android·运维·ios·小程序·uni-app·iphone·webview
AI云原生3 小时前
云原生系列Bug修复:Docker镜像无法启动的终极解决方案与排查思路
运维·服务器·python·docker·云原生·容器·bug
不吃凉粉9 小时前
Android Studio USB串口通信
android·ide·android studio
zhangphil9 小时前
android studio设置大内存,提升编译速度
android·android studio
编程乐学10 小时前
安卓非原创--基于Android Studio 实现的天气预报App
android·ide·android studio·课程设计·大作业·天气预报·安卓大作业
大熊的瓜地11 小时前
Android automotive 框架
android·android car
私人珍藏库12 小时前
[Android] Alarm Clock Pro 11.1.0一款经典简约个性的时钟
android·时钟
消失的旧时光-194314 小时前
ScheduledExecutorService
android·java·开发语言
小糖学代码14 小时前
MySQL:14.mysql connect
android·数据库·mysql·adb
怪兽201417 小时前
请谈谈什么是同步屏障?
android·面试