Fixed
Status Update
Comments
ly...@gmail.com <ly...@gmail.com> #2
Example
uc...@google.com <uc...@google.com> #3
Reproduced in
Android Studio 3.1
Build #AI-173.4670197, built on March 21, 2018
JRE: 1.8.0_152-release-1024-b01 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.9.0-6-amd64
Android Studio 3.1
Build #AI-173.4670197, built on March 21, 2018
JRE: 1.8.0_152-release-1024-b01 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.9.0-6-amd64
sp...@google.com <sp...@google.com>
ly...@gmail.com <ly...@gmail.com> #4
I spent some more time testing different svg images, and the import tool seems to be working for some of them (attached working example - Chome Logo).
I tried filling up the the previous file (ic_refresh_black_24px.svg) with metadata etc. but it seems like the problem is within [parsing] the path data itself.
This is not a new file, I used it before in previous versions of Android Studio and there were no problems.
Displaying those files in a browser seems to not be a problem, and I was successful using a 3rd party tool to convert them into xml drawables (http://inloop.github.io/svg2android/ ).
I also attached a simpler example, with less complicated path data (ic_check.svg), that also can't be imported.
FYI, removing a suspicious line, that looks like some kind of metadata `<path d="M0 0h24v24H0z" fill="none"/>` didn't help.
I tried filling up the the previous file (ic_refresh_black_24px.svg) with metadata etc. but it seems like the problem is within [parsing] the path data itself.
This is not a new file, I used it before in previous versions of Android Studio and there were no problems.
Displaying those files in a browser seems to not be a problem, and I was successful using a 3rd party tool to convert them into xml drawables (
I also attached a simpler example, with less complicated path data (ic_check.svg), that also can't be imported.
FYI, removing a suspicious line, that looks like some kind of metadata `<path d="M0 0h24v24H0z" fill="none"/>` didn't help.
sp...@google.com <sp...@google.com> #5
Fixed by ag/I4104482213e94acd60de8b9d9be7b5de193253f6
Description
all required information.
Studio Version: 3.1
Studio Build: #AI-173.4670197
Version of Gradle Plugin: N/A
Version of Gradle: N/A
Version of Java: 1.8.0_152 amd64
OS: Windows 10
Steps to Reproduce:
1. Download/use any SVG icon
2. Right click on res/drawables in the Project view
3. New/Vector asset
4. Select Local File (SVG, PSD)
5. Select the path to the file from step 1
6. Click Next and Finish
<vector xmlns:android="
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
</vector>