Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to export icons for Android #156

Closed
margarita-v opened this issue Mar 2, 2022 · 4 comments
Closed

Unable to export icons for Android #156

margarita-v opened this issue Mar 2, 2022 · 4 comments

Comments

@margarita-v
Copy link

Download release bundle according to manual installation instruction.
Use standard android config with no changes and sample Android figma file for the light theme (lightFileId: MRVOEjTRatddzaMN7iYlAe).

log for figma-export icons:

2022-03-02T12:20:29+0300 info com.redmadrobot.figma-export : Using FigmaExport 0.32.2 to export icons to Android Studio project.
2022-03-02T12:20:29+0300 info com.redmadrobot.figma-export : Fetching icons info from Figma. Please wait...
2022-03-02T12:20:31+0300 info com.redmadrobot.figma-export : Fetching vector images...
2022-03-02T12:20:32+0300 info com.redmadrobot.figma-export : Processing icons...
2022-03-02T12:20:32+0300 info com.redmadrobot.figma-export : Downloading remote files...
2022-03-02T12:20:33+0300 info com.redmadrobot.figma-export.file-downloader : Downloaded 1/13
2022-03-02T12:20:34+0300 info com.redmadrobot.figma-export.file-downloader : Downloaded 2/13
2022-03-02T12:20:34+0300 info com.redmadrobot.figma-export.file-downloader : Downloaded 3/13
2022-03-02T12:20:34+0300 info com.redmadrobot.figma-export.file-downloader : Downloaded 4/13
2022-03-02T12:20:34+0300 info com.redmadrobot.figma-export.file-downloader : Downloaded 5/13
2022-03-02T12:20:34+0300 info com.redmadrobot.figma-export.file-downloader : Downloaded 6/13
2022-03-02T12:20:34+0300 info com.redmadrobot.figma-export.file-downloader : Downloaded 7/13
2022-03-02T12:20:34+0300 info com.redmadrobot.figma-export.file-downloader : Downloaded 8/13
2022-03-02T12:20:34+0300 info com.redmadrobot.figma-export.file-downloader : Downloaded 9/13
2022-03-02T12:20:34+0300 info com.redmadrobot.figma-export.file-downloader : Downloaded 10/13
2022-03-02T12:20:34+0300 info com.redmadrobot.figma-export.file-downloader : Downloaded 11/13
2022-03-02T12:20:34+0300 info com.redmadrobot.figma-export.file-downloader : Downloaded 12/13
2022-03-02T12:20:34+0300 info com.redmadrobot.figma-export.file-downloader : Downloaded 13/13
2022-03-02T12:20:34+0300 info com.redmadrobot.figma-export : Converting SVGs to XMLs...

It seems that the script never finishes and there are no generated icons in output.
Same behaviour for figma-export images for config changes:

images:
    format: svg
@subdan
Copy link
Collaborator

subdan commented Mar 2, 2022

Do you have installed Java? Just run java in the terminal. If you see the following error, install Java.

The operation couldn’t be completed. Unable to locate a Java Runtime.
Please visit http://www.java.com for information on installing Java.

@margarita-v
Copy link
Author

Java is installed

java -version 
openjdk version "1.8.0_312"
OpenJDK Runtime Environment Corretto-8.312.07.1 (build 1.8.0_312-b07)
OpenJDK 64-Bit Server VM Corretto-8.312.07.1 (build 25.312-b07, mixed mode)

@subdan
Copy link
Collaborator

subdan commented Mar 2, 2022

FigmaExport can’t find vd-tool binary to convert SVG to XML. I recommend you to install FigmaExport via Homebrew to avoid this issue. As a temporary solution you can place vd-tool folder near the figma-export.yaml file.

@margarita-v
Copy link
Author

Thank you, placing vd-tool folder helps. Hopefully Homebrew installation will be fixed too #155

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants