Where option -> New > Vector Asset on Android Studio?

天涯浪子 提交于 2021-02-08 08:13:22

问题


I would like to add an SVG image to the Res folder. Right-click to option in the res -> add new file... there is no Asset Vector... Why? What is wrong?


回答1:


Follow this path to find New Vector Asset

app->res->drawable. right click on drawable then New->Vector Asset

For reference follow below image:

I hope its work for you.




回答2:


For first step you have to build the project correctly.

as https://developer.android.com/studio/build

The problem sue on bottom bar in your android studio.




回答3:


Try using different version of Android (before 4.4) for "Vector Assert" to appear in a "New" context menu. Path to Vector Asset



来源:https://stackoverflow.com/questions/54873164/where-option-new-vector-asset-on-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!