Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
[ID: 558956]
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
Build: AI-201.8743.12.41.6953283, 202011050241,
AI-201.8743.12.41.6953283, JRE 1.8.0_242-release-1644-b01x64 JetBrains s.r.o, OS Windows 10(amd64) v10.0 , screens 2194x1234
AS: 4.1.1; Kotlin plugin: 1.4.21-release-Studio4.1-1; Android Gradle Plugin: 4.1.0; Gradle: 6.5; NDK: from local.properties: (not specified), latest from SDK: 22.0.7026061; LLDB: LLDB 3.1 (revision: 3.1.4508709); CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)
Steps to reproduce
Expected results
The SVG is imported and converted to a vector drawable.
Actual results
Nothing happens. There are no results nor error messages shown in Android Studio.
The following logline is printed in idea.log:
WARN - urcemanager.plugin.SVGImporter - Error converting test_fail.svg to vector drawable - For input string: "5.7%"
What is causing this bug
According to the source (https://android.googlesource.com/platform/tools/base/+/mirror-goog-studio-master-dev/sdk-common/src/main/java/com/android/ide/common/vectordrawable/Svg2Vector.java#904 ) only absolute values (without a unit identifier, which is optional) are parsed. But the provided INPUT SVG has a
rect
element with rounded corners (see rx/ry attributes) with a percentage length value forrx
of5.7%
.For SVG 1.1 speficiation see:
INPUT SVG
The bug can be reproduced with the following minimal SVG: