Converting SVG files: Exception Converting SVG resources

I am trying to import a very simple Figma UI:

https://www.figma.com/file/QuWh3drqvNDIz82mrYGGAU/ActionButton?node-id=0%3A1&t=7ZZQHvhAB6ZkeoBH-1

I am getting the following error:

Converting SVG files: Exception Converting SVG resources for component_1.

How do I fix this?

Your button component1 is pretty simple.
Manual export to svg seems to work fine.
What is the code you used that throwed this error ?

I have the same problem.
Did you to correct this?

Same issue here.

In Figma added rectangle with rounded corners and a text over it. Created a component out of it and defined UI package in relay plugin (tap handler for the rectangle and text-content for the text.

Saved.

After importing UI package and trying to build I get the:
Converting SVG files: Exception Converting SVG resources for component_1.

Found a solution to anyone that’s struggling.

My gradle initially had " id ‘com.google.relay’ version ‘0.3.05’ " defined, this gave me this strange SVG error. I have reduced it to 0.3.00 and then got a less mysterious error where it stated that I need to configure my JAVA_HOME.

After I have set the JAVA_HOME on my windows in environment variables: C:\Program Files\Java\jre-1.8 (point to JRE or JDK) I cleaned and rebuilt the project and all was good.

2 Likes