【问题标题】:Auto suggestion for imageview and textView in android studio .xmlandroid studio .xml 中 imageview 和 textView 的自动建议
【发布时间】:2021-12-01 22:59:50
【问题描述】:

android studio .xml 文件中 imageview 和 textView 的自动建议不起作用。

我已经尝试了其他 SO 线程中提到的所有解决方案,例如 AppData\Local\Google\AndroidStudio4.2 中的缓存无效删除/重建文件夹删除 .gradle 文件省电模式并干净地重建项目,我什至 移动所有 源代码和资源 到一个新项目,但问题仍然存在。 在从主项目传输文件之前,新项目的 imageview 和 textview 元素可以正常工作! 如果有帮助,我正在使用 androidX!

xml layout
dependencies

【问题讨论】:

    标签: android xml android-studio android-layout


    【解决方案1】:

    问题终于解决了

    • 清理项目(AS菜单->构建->清理项目)-->
    • 关闭 AS -->
    • 删除以下目录
      %userprofile%\AppData\Local\Google\AndroidStudio4.2
    • 重新打开 AS 并构建项目

    【讨论】:

      猜你喜欢
      • 2014-04-26
      • 2010-12-28
      • 2022-11-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-11-10
      相关资源
      最近更新 更多