I am using android studio version 3.5.1, and for all other projects it works fine, but for a specific project the xml suggestions are not showing. I have already tried by invalidating caches, deleting .idea
folder, but the result remained the same.
<?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>
I had this issue a while back and was able to fix it by following these steps;
C:\Users\{MyUsername}\.AndroidStudio3.5\system\caches\
directory.This should have things working for you again. I hope that helps!
Note : my answer here is a slight revision of a prior answer I'd provided to a similar question . I had tried all the other recommendations that you've mentioned in your question and none bar the one I've included above seemed to work for me.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.