Webp Images Not Supported as Drawables in 1.3.0-beta1

377 views
Skip to first unread message

Scott Olcott

unread,
Jun 2, 2015, 1:28:57 PM6/2/15
to adt...@googlegroups.com
We have been using webp images in our src/main/res/drawable folder to help reduce the size of our apk.  This has been working for quite a while for us.  After trying out the 1.3.0-beta1 version of the gradle plugin this not longer works.  We get the following error:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':module:mergeReleaseResources'.
> /path-to-module/src/main/res/drawable/image.webp: Error: The file name must end with .xml or .png


Is this expected?  Are webp images no longer supported?

Thanks,
Scott

Xavier Ducrohet

unread,
Jun 2, 2015, 8:05:59 PM6/2/15
to adt...@googlegroups.com
Thanks for the report. We'll fix this ASAP.

--
You received this message because you are subscribed to the Google Groups "adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adt-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. Thanks!

Scott Olcott

unread,
Jun 2, 2015, 8:36:56 PM6/2/15
to adt...@googlegroups.com

Thanks


You received this message because you are subscribed to a topic in the Google Groups "adt-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adt-dev/ypSZ2tNRXrQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adt-dev+u...@googlegroups.com.

Jelly Vora

unread,
Jul 22, 2015, 8:54:22 PM7/22/15
to adt-dev
Hi is the error fixed? Because we are facing the same issue. 1.3.0-beta1 version gives ur error for ico images in drawable folder and hence the project does not compile. If i remove the line in build file (1.3.0-beta1) it compiles fine

Xavier Ducrohet

unread,
Jul 22, 2015, 8:57:01 PM7/22/15
to adt...@googlegroups.com
please try with 1.3.0-beta4

Jelly Vora

unread,
Jul 22, 2015, 9:25:24 PM7/22/15
to adt...@googlegroups.com
I tired. Dosnt work! Still same error
You received this message because you are subscribed to a topic in the Google Groups "adt-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adt-dev/ypSZ2tNRXrQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adt-dev+u...@googlegroups.com.

Taehyun Park

unread,
Aug 4, 2015, 7:22:54 PM8/4/15
to adt-dev
Same here! I thought I am the only one using webp in drawable. Hope this is fixed asap.

Michael Grafton

unread,
Aug 7, 2015, 2:40:30 PM8/7/15
to adt...@googlegroups.com
Hey Xavier et. al,

Any news on this issue? I just tried to upgrade my project to 1.3.0 and got this problem with our .svg files living in res/drawable. 

Mike

--

Michael Grafton

unread,
Aug 12, 2015, 12:58:51 PM8/12/15
to adt...@googlegroups.com
Hi folks,

I'd like to check up on this problem, as it's preventing me from upgrading to the 1.3 plugin. 

Is this being tracked anywhere on the AOSP issue tracker? Any idea when it will be fixed?

Thanks!
Mike

Scott Olcott

unread,
Aug 12, 2015, 2:50:35 PM8/12/15
to adt-dev
This is fixed for .webp images.

Michael Grafton

unread,
Aug 13, 2015, 12:35:59 PM8/13/15
to adt...@googlegroups.com
Interesting, thanks. It still breaks on SVG images, though (which we are loading through a third-party library right now).

Hey Dev Tools team: is putting SVGs into res/drawable ever going to be legal again?

Mike

Chris Warrington

unread,
Aug 17, 2015, 11:52:39 AM8/17/15
to adt-dev
Hi all,

SVGs can't be used as drawables, so they should probably be moved in res/raw or be converted to vector drawables, but webp should now be fine in 1.3

Chris.
Reply all
Reply to author
Forward
0 new messages