【问题标题】:Android Studio suggestion in xml not showing for a specific projectxml 中的 Android Studio 建议未针对特定项目显示
【发布时间】:2019-10-04 02:21:57
【问题描述】:

我使用的是 android studio 3.5.1 版,对于所有其他项目,它工作正常,但对于特定项目,xml 建议没有显示。我已经尝试过使缓存失效,删除.idea文件夹,但结果还是一样。

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".xyz">
    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

</LinearLayout>

【问题讨论】:

    标签: android android-studio


    【解决方案1】:

    我不久前遇到过这个问题,并且能够按照以下步骤解决它;

    1. 关闭 Android Studio。
    2. 删除C:\Users\{MyUsername}\.AndroidStudio3.5\system\caches\目录的内容。
    3. 重新启动 Android Studio。

    这应该会再次为您服务。希望对您有所帮助!

    注意:我的回答是对prior answer I'd provided to a similar question 的轻微修改。我已经尝试了您在问题中提到的所有其他建议,但没有一个我在上面包含的建议似乎对我有用。

    【讨论】:

    • 这是个好消息@ShubhasishRoutray!你介意接受我的回答吗?
    猜你喜欢
    • 2020-02-15
    • 2014-12-15
    • 1970-01-01
    • 2021-02-09
    • 2021-08-06
    • 2019-09-28
    • 2011-10-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多