android - 未解决的 kotlin android 扩展
问题描述
我注意到在implementation 'com.google.android.material:material:1.0.0-alpha3'
我的 build.gradle kotlin android 扩展停止工作之后。
像这样的导入import kotlinx.android.synthetic.main.<some layout>.*
变得未使用,所有布局 id 都未解析。
我尝试添加androidExtensions {experimental = true}
到 build.gradle,但没有帮助。
有没有人遇到过同样的问题?有解决方案吗?
我使用 AS 3.2 canary 17 和 kotlin 1.2.41
更新:这只发生在片段中
解决方案
我遇到了同样的问题。就我而言,导致问题的原因是
implementation 'com.wdullaer:materialdatetimepicker:4.2.1'
推荐阅读
- javascript - 如何从 element.all each 返回一个元素
- php - 与 MongoDB 的 PHP 连接不起作用并响应“试图获取无价值的属性”
- python - 如何跳过按 Enter 继续使用 python 在 shell 命令中
- android - Phaser 2:游戏不加载到 WebView
- quickbooks - Consolibyte QuickBooks PHP 库 - 您如何调试/查看错误?
- linux - 在 Linux 中添加脚本以在启动终端 bash shell 时显示日期
- java - 如果测试失败,重试 TestNG 代码中的特定代码,而不是整个测试
- python - 如何在 Pandas 单元格中生成字符串计数的 Python 数据透视表?
- django - URLconf 中似乎没有任何模式/循环导入错误
- angular - 如何使用模型初始化角度服务?