flutter_launcher_icons icon indicating copy to clipboard operation
flutter_launcher_icons copied to clipboard

Adaptive icon issue

Open wmla419 opened this issue 5 years ago • 3 comments

`* What went wrong: Execution failed for task ':app:mergeDebugResources'.

java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed C:\Users\test\Documents\GitHub\test\android\app\src\main\res\values\colors.xml:3:5-78: AAPT: error: invalid color.

Gradle task assembleDebug failed with exit code 1`

I keep receiving this error after I tried to use adaptive icon, when I try to change back to non-adaptive icon, same error popped up also.

wmla419 avatar Oct 13 '19 13:10 wmla419

This problem happens because we are using an image as adaptive image background, and somehow that is interpreted as colors. Frankly this package does not work for adaptive icons. We have to go into android directory and handle the images and res/mipmap-anydpi-v26/ic_launcher.xml ourselves. The link to adaptive icons here https://developer.android.com/guide/practices/ui_guidelines/icon_design_adaptive

yaizudamashii avatar May 28 '20 04:05 yaizudamashii

eeehm...

Bildschirmfoto 2021-09-10 um 15 38 41

Ahmadre avatar Sep 10 '21 13:09 Ahmadre

@MarkOSullivan94

Ahmadre avatar Sep 10 '21 13:09 Ahmadre