
In this article, we’ll learn how to convert SVG and PSD files to XML in Android Studio.
It’s easy to convert the images to XML format. First, open the Android Studio. Right-click on the res folder > New > Vector Asset.

Select the “Local file (SVG, PSD)” radio button. Next, click on the browse icon and select your image.

Click on the “Next” button, then, “Finish” button.
Now, open res > drawable folder. You will find your image in the XML format.
Sometimes, when you open the image, you will get errors (mostly because of color).

There is no currentColor in the project. To fix this, simply set a color.

How to Convert Multiple Files at Once?
If you have a lot of files, you can easily convert them using the Resource Manager.
First, put the images in a folder on your computer. In the Android Studio, go to Tools > Resource Manager.

In the Resource Manager pane, click on the + icon, and select “Import Drawables.”

Navigate to the folder and click on the OK button. You will see a window with all the files. Click on the Next button.

Next, click on the Import(C) Button.

Now, go to the res > drawable folder. You will find your XML files. If you get the same currentColor error, replace it with a color value.
That’s it! This is how you can convert SVG or PSD files to XML format in Android Studio.
Related Articles:
References: