Fixed
Status Update
Comments
uc...@google.com <uc...@google.com> #2
Not reproduced in latest stable version 3.3.1
d....@gmail.com <d....@gmail.com> #3
issue persists in 3.4.1
any news?
any news?
uc...@google.com <uc...@google.com>
8a...@gmail.com <8a...@gmail.com> #4
same issue in 3.4.1
il...@gmail.com <il...@gmail.com> #5
Still an issue for 3.5.2
tn...@google.com <tn...@google.com> #6
This is now fixed in 4.0. The IDE will no longer say that src is required in a drawable xml, since there are other ways (such as srcCompat) to set it.
Fixed by Change-Id: I5ca07959269dd3bc8cdec5a0da902d3f4cbc9c65. Thanks for the reports.
Fixed by Change-Id: I5ca07959269dd3bc8cdec5a0da902d3f4cbc9c65. Thanks for the reports.
Description
AI-181.5540.7.32.5056338, JRE 1.8.0_152-release-1136-b06x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.13.6 unknown, screens 1680x1050; Retina
Android Gradle Plugin: 3.2.1
Gradle: 4.6
In below code AS complains that you need to use app:srcCompat, and when changed to app:srcCompat it complains that src attribute should be defined, hence creating cyclic dependency and in the end unable to use layer-list with drawables.
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="
xmlns:app="
<item>
<shape android:shape="rectangle">
<solid android:color="@color/light_gray" />
</shape>
</item>
<item>
<bitmap
app:srcCompat="@drawable/ic_express_icon_no_image"
android:gravity="center" />
</item>
</layer-list>