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

17.8k views Asked by At

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.

9

There are 9 answers

4
MehranB On BEST ANSWER

Those clip arts are located in "icons" folder inside your sdk folder on your hard drive and the sdk folder is generally this:

C:\Users\ --username-- \AppData\Local\Android\Sdk

I guess android studio cannot access the right sdk location so make sure the sdk location in your "File/Project Structure/SDK Location" matches the actual sdk location on your hard drive.

Alternatively, you can download the clip art you need from this link: Android Material and import them by choosing Local file in your Asset Studio.

0
Omar Navarro On

This a new problem introduced in the latest version of Android Studio 4.1. This happens when your windows user name folder contains a space. Rename your user name’s folder removing the space and it will work again.

For some reason the space make the folder where the icons are located not visible to Android Studio.

5
Homayoon Ahmadi On

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.

0
oleh On

I had the same issue in Intellj IDEA. It seems to me that the initial download was incomplete.

The icons reappeared after I deleted <Android-SDK-Home>\icons\material\icons_metadata.txt

3
Trancol On

If there are already this folders and still nothing in dialog try deleting <sdk>/icons/material/icons_metadata.txt

Credit to @MainActivity

4
xa0082249956 On

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.

0
UTTAM On

It's working Your SDK folder name must be spaced less, ex- (UTTAM, UttamSdk, Uttam_sdk)

HAPPY CODING :)

0
Avinash Jha On

Same thing happened with me, also i was not able to change my user name because of Win 10 Single Lang. so i just moved my SDK folder to another path but there was not space between the path like from >> C:\Users\User Name\AppData\Local\Android\Sdk to >> C:\Users\Sdk.

1
NRrugby14 On

In Android Studio 4.1.1 this issue is resolved. Update if possible.