简体   繁体   English

当我尝试在 Android Studio 中插入新的 Vector Asset 时“没有显示”

[英]"Nothing to show" when I tried to insert a new Vector Asset in Android Studio

"Nothing to show" error - vector asset “无显示”错误 - 矢量资产

Hey, all.大家好。 So, recently I updated my Android Studio Version to 4.1 (the latest version).所以,最近我将我的 Android Studio 版本更新为 4.1(最新版本)。 I wanted to add a vector asset just like the usual but..somehow..the preview of the icons did not show up.我想像往常一样添加矢量资产,但是..不知何故..图标的预览没有显示。 I can't choose a vector asset or even add one.我无法选择矢量资产,甚至无法添加。 Is there any way to fix this?有没有什么办法解决这一问题? Or maybe, a way to downgrade the version?或者,一种降级版本的方法? Thank you so much :(非常感谢 :(

This problem seems to be originated with the Android Studio Windows version 4.1.这个问题似乎起源于 Android Studio Windows 4.1 版。 I have the same exact problem and I went back to version 4.0.1.我有同样的问题,我回到了 4.0.1 版。 With the previous version Asset Studio clip art works fine.使用以前的版本 Asset Studio 剪贴画工作正常。 It also works fine the Android Studio version 4.1 for mac OS.它也适用于 Mac OS 的 Android Studio 4.1 版。

Update:更新:

I found out why it isn't displaying the icons.我发现了为什么它不显示图标。 For some reason when the Windows user name's folder has a space, it can't load the images and it only shows the message "Nothing to show".出于某种原因,当 Windows 用户名的文件夹有空格时,它无法加载图像并且只显示消息“无显示”。 I had to change the folder name and eliminate the space in order to make it work.我必须更改文件夹名称并消除空格才能使其正常工作。

I'm faced with the same issue, I fixed this issue by moving Android folder from我遇到了同样的问题,我通过移动Android文件夹来解决这个问题
C:\\Users\\User Name\\AppData\\Local C:\\用户\\用户名\\AppData\\Local
to any different folder ( C:\\Users ) and in Android Studio Goto File -> Project Structure... and in SDK Location set new SDK location.到任何不同的文件夹( C:\\Users )并在 Android Studio Goto File -> Project Structure...SDK Location 中设置新的 SDK 位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM