Android Studio 4不正确的矢量可绘制预览 [英] Android Studio 4 incorrect vector drawable preview
问题描述
更新到Android Studio 4.0后,我的所有矢量图标在预览屏幕上显示错误.但是在设备上运行应用程序后,它们看起来很正常.它涉及所有矢量图标:在Android Studio的先前版本中导入,在新版本中导入,从svg文件导入以及在Android Studio中作为剪贴画导入.
After update to Android Studio 4.0, all my vector icons display wrong on the preview screen. But they look normal after running an application on the device. It concerns all vector icons: imported on the previous version of the Android Studio, imported on the new version, imported from svg file, and imported in Android Studio as clip art.
操作系统:Ubuntu 18.04.2 LTS
OS: Ubuntu 18.04.2 LTS
如何解决?
推荐答案
这可能是因为您具有非默认语言环境(以检查终端中的运行 locale
).特别是 LC_NUMERIC
.如果是这种情况,要解决此问题,请使用 LC_NUMERIC =" en_US.UTF-8"
.
This is probably because you have a non-default locale (to check run locale
in terminal). In particular LC_NUMERIC
. If that's the case, to fix the issue run the studio with e.g. LC_NUMERIC="en_US.UTF-8"
.
这篇关于Android Studio 4不正确的矢量可绘制预览的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!