Missing attributes in the layout design - Android Studio

前端 未结 2 1931
小蘑菇
小蘑菇 2021-01-06 21:19

A lot of attributes are missing in the Attributes panel in the layout designing window.

As you can see in the above image, only two attributes are shown for

2条回答
  •  醉梦人生
    2021-01-06 21:46

    Solution (Extracted from here)

    1. Close Android Studio
    2. Go to C:\Users\UserName\.android and delete the build-cache and cache folders
    3. Go to C:\Users\UserName\.AndroidStudioX.X\system and delete these folders

      • caches

      • compiler

      • compile-server

      • conversion

      • external_build_system

      • frameworks

      • resource_folder_cache

      • tmp

    4. Open Android Studio and open your project again.


    Android Studio automatically generate several files and folders to store configurations, cache, etc. Above issue happens when Android Studio messes up one or more of these files and folders. Solution is to delete them. So when the previously saved files are no longer available, Android Studio creates those configurations back again.

    This won't affect any of your projects or the changes which you have made to Android Studio (Settings, themes, Keymaps, etc.)


    All the attributes are now shown as before.

    Suggestions are working as well.

提交回复
热议问题