首页 > 解决方案 > 未解决的 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

更新:这只发生在片段中

标签: androidkotlinkotlin-extension

解决方案


我遇到了同样的问题。就我而言,导致问题的原因是 implementation 'com.wdullaer:materialdatetimepicker:4.2.1'


推荐阅读