I’m following a tutorial to convert Figma designs into Android code using the Relay plugin. Everything seems to work fine during the import process, but I’m running into two main problems.
First, the ui-packages folder that should appear after importing my Figma component just doesn’t show up in the project structure. I’ve set up my personal access token correctly and the import process completes without any obvious errors.
Second, when I try to build the project, I get this error:
Execution failed for task ':app:generateDebugRelayCode'.
> A failure occurred while executing com.google.d2c.gradle.GenerateCode$GenerateCodeWorkAction
> Converting SVG files: Exception Converting SVG resources for welcome_card.
I managed to fix the first issue by restarting Android Studio and removing any hidden ui-packages folders from the file system before reimporting. The folder now shows up properly.
However, the build error with SVG conversion is still happening. Has anyone encountered similar issues with Relay? What could be causing the SVG conversion to fail during the code generation process?