Question

How I fix NOTHING TO SHOW in my vector asset in android studio

enter image description here

I want to add a new vector asset. I am trying to add a clipArt but it only shows in the dialog box "Nothing to show". No icon is showing and I want to add an icon. I don't know to fix this. Please help. I am still trying to learn android studio and I am practicing on how to use it.

 46  24439  46
1 Jan 1970

Solution

 65

In Android Studio Hedgehog, there is a bug in a way that you have to delete the <sdk>/icons/material/icons_metadata.txt file every time, cause it changes each time you open the vector assets dialog.

To avoid this, you can make the file read-only through the file properties window.

Hope this helps.

2023-12-09

Solution

 21

For myself, my asset dialog only shows some of these icons. And here is my solution.

Go to

[SdkPath]/icons/material

There should be a file called icons_metadata.txt, and folders

  • materialicons
  • materialiconsoutlined
  • materialiconsround
  • materialiconssharp
  • materialiconstwotone

For each icon, there will be one folder in the folders above. For example, we have materialicons/share, materialiconsoutlined/share and so on.

These icon folders are not complete, only icons starting with digits exist. Since the folder only updated when "Select Icon" dialog is opening, I opened "Select Icon" dialog again, waiting for all icons are downloaded, and then reopen the dialog.

Then my problem is solved.

2021-09-12