Hello!
I'm trying to change my images from PNG to SVG to make the quality better across screens. I've created my SVGs in Adobe Illustrator. However, whenever I try to load an SVG I get this Error:
java.lang.NumberFormatException: For input string: "281.5"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at com.garmin.monkeybrains.resourcecompiler.drawables.bitmaps.ConnectIQBufferedImage.rasterize(ConnectIQBufferedImage.java:202)
at com.garmin.monkeybrains.resourcecompiler.drawables.bitmaps.ConnectIQBufferedImage.<init>(ConnectIQBufferedImage.java:131)
at com.garmin.monkeybrains.resourcecompiler.DocumentParser.getBitmaps(DocumentParser.java:1161)
at com.garmin.monkeybrains.resourcecompiler.DocumentParser.getResources(DocumentParser.java:535)
at com.garmin.monkeybrains.ProjectBuilder.generateProjectResources(ProjectBuilder.java:673)
at com.garmin.monkeybrains.Monkeybrains.runPRGCompiler(Monkeybrains.java:1597)
at com.garmin.monkeybrains.Monkeybrains.compileApplication(Monkeybrains.java:1335)
at com.garmin.monkeybrains.Monkeybrains.run(Monkeybrains.java:2774)
at com.garmin.monkeybrains.Monkeybrains.simpleMain(Monkeybrains.java:342)
at com.garmin.monkeybrains.Monkeybrains.main(Monkeybrains.java:371)
ERROR: Couldn't convert SVG 1 For input string: "281.5"
In my layout.xml, I load the image like this:
I'm using SDK 4.1.5 and VS Code. PNGs load fine and there are no errors. Not even the Garmin TypedFace sample will compile, the SVGs also have the same errors amongst other errors I get when trying to run it. What am I doing wrong?
Thanks in advance!