Status Update
Comments
th...@opera.com <th...@opera.com> #2
We use build flavours heavily with a lot of common code. The refactoring support in AS is really good but it continually catches us out when it doesn't work across all flavours in a project. It's a big gap for serious product development.
Description
Reproduction steps:
1. Clone example project (
2. Open project in Android Studio.
3. Start tool for converting images to webp.
(right-click on res directory and select "Convert to WebP...")
4. Select lossless encoding.
Make sure "Skip images with transparency/alpha channel" is NOT checked.
Select all suggested images.
Expected result:
All images continue to look exactly the same and some/all are converted to webp.
Actual result:
These are converted to webp without transparency:
drawable-xxxhdpi/ic_pause_white_36dp.webp
drawable-xxxhdpi/ic_stop_white_36dp.webp
drawable-xxhdpi/ic_stop_white_36dp.webp
drawable-xhdpi/ic_pause_white_36dp.webp
drawable-xhdpi/ic_stop_white_36dp.webp
drawable-mdpi/ic_stop_white_36dp.webp
These are converted to webp correctly:
drawable-hdpi/ic_pause_white_36dp.webp
drawable-hdpi/ic_stop_white_36dp.webp
drawable-mdpi/ic_pause_white_36dp.webp
drawable-xxdpi/ic_pause_white_36dp.webp
Build: AI-193.6911.18.40.6626763, 202006250242,
AI-193.6911.18.40.6626763, JRE 1.8.0_242-release-1644-b3-6222593x64 JetBrains s.r.o, OS Linux(amd64) v5.4.65-1-lts, screens 2560x1440, 1920x1080, 1440x2560
AS: 4.0.1; Kotlin plugin: 1.4.10-release-Studio4.0-1; Android Gradle Plugin: 4.0.1; Gradle: 6.1.1; NDK: from local.properties: (not specified), latest from SDK: 21.3.6528147; LLDB: pinned revision 3.1 not found, latest from SDK: (package not found); CMake: from local.properties: (not specified), latest from SDK: 3.10.2, from PATH: 3.18.2