Fixed
Status Update
Comments
uc...@google.com <uc...@google.com>
je...@google.com <je...@google.com>
im...@google.com <im...@google.com>
lu...@google.com <lu...@google.com> #2
Hey Matt, can you provide a repro project so we can have a look at what is happening?
And yes, vector SVGs are supported from SDK >= 24 and AGP generates gradient PNG files to support devices <24.
cm...@google.com <cm...@google.com> #3
As a side comment,
ma...@reverb.com <ma...@reverb.com> #4
Here's a repro project: https://github.com/mateot1/as-drawable-build-issue-repro not sure what it is about this particular svg...
I've worked on other projects where we've set `vectorDrawables.useSupportLibrary = true`, not sure why we haven't done it yet. I suppose we can try that in the meantime.
I've worked on other projects where we've set `vectorDrawables.useSupportLibrary = true`, not sure why we haven't done it yet. I suppose we can try that in the meantime.
lu...@google.com <lu...@google.com> #5
Thanks Matt, the issue was that there was a conflict as AGP was attempting to create the drawable-v24 vector twice; once for the drawable folder for compatibility and again for the drawable-v24 folder. The issue has been fixed to only generate drawable-v24 from the drawable-v24 folder.
The fix will be included in 4.1 RC 3 and 4.2 Canary 9.
Description
AI-201.8743.12.41.6719854, JRE 1.8.0_242-release-1644-b3-6222593x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.15.6, screens 1680x1050; Retina
AS: 4.1 RC 1; Kotlin plugin: 1.3.72-release-Studio4.1-5; Android Gradle Plugin: 4.1.0-rc01; Gradle: 6.5; NDK: from local.properties: (not specified), latest from SDK: (not found); LLDB: pinned revision 3.1 not found, latest from SDK: (package not found); CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)Source: user_sentiment_feedback
When I try to build my app with the latest RC it fails in the mergeResources task because it thinks a drawable in the drawable-v24 directory is a duplicate of the fallback version in the drawable directory. It builds if I delete this drawable and does not seem to have issues with any of the other drawables that have different versions (i.e. drawable-xhdpi, drawable-v21). Not sure if it is relevant but they are svgs and the difference is the v24 one uses a gradient.