I've been trying to find a way to change that icon by many ways but that didn't work - I still get this white android on the blue background.
I tried:
using Android Assets Studio where I configured all assets (app icon and everything else looks good except that minimized icon)
changing AndroidManifest.xml icon and round icons
using flutter_launcher_icons plugin
And everything is without luck. How can I manually change that specific minimized icon?
Apparently, this is only an issue when working in the debugging mode on an emulator. I've tried the same application on the physical mobile device and it had the correct image up there. Perhaps, it's a Flutter bug.
that is regular ic_launcher.png the one under "round" that is selected in picture above.
When using flutter_launcher_icons package, try giving your new icon set a new config name like 'new_launch' and providing image_path and adaptive_icon_background for android.
Running flutter pub run flutter_launcher_icons:main in terminal got my icon in the minimized screen as well.
Here's an example
Related
I created a new icon for my app and I used flutter launcher icons for generate the launcher icon.
In the midmap folders there is the ic_launcher.png and if I open it is my new launcher icon.
But if I install the app via android studio on my phone it shows the old icon.
It happened to me even when I created the first icon.
It went all well but the app had the default flutter icon.
It started to show the new one when I changed the app name but now I cannot change it again.
I already tried with the flutter-launcher-icons widget, to use flutter clean, ecc... but it doesn't change.
Why there is this problem? And where the app takes the old logo information?
UPDATE
I discovered a workaround for this problem.
If I delete all generated files (even the ones that looks right) and then I regenerate them when I install the app on the phone the icon looks right.
There will be 5 different mipmap files within android/app/src/res/main folder. Each mipmap consists icon launcher of different dimensions and pixels. Make sure you have replaced all 5 icon launchers with your generated Icon Launcher.
You can Generate Icon Launcher from here.
I see this issue still hasn't been resolved. I did find a workaround when I ran into the same problem. Just add
adaptive_icon_foreground: 'assets\logo.png'
adaptive_icon_background: '#000000'
in your pubspec.yaml under flutter_icons: where you can mention any suitable background color in hex for adaptive_icon_background.
I've had a similar problem, where the app icon would always be the androids default one. The way I fixed this, was by looking at the following Github thread: https://github.com/flutter/flutter/issues/59305
I noticed, that there was an error in my AndroidManifest.xml, where the android:icon="#mipmap/launcher_icon" was not inside the application-tag. After placing the ">" after android:icon="#mipmap/launcher_icon", it worked for me.
How it looked:
Not working
How it should look:
Working
I hope this helped
I added app-icons to my app for both iOS and Android. I watched this Tutorial and it is working so far. But the problem I have is that my Android Icon looks like this at the moment:
But the icon should fill the circle. In the tutorial it is shown how you can do it in Android Studio, but I am using VSCode.
I tried searching for it but couldn't find anything..
How can I get this done?
By the way, I am not using flutter_launcher_icons .
It seems that you can't do it from vs code, it has to be done in android studio...
I have searched for an answer as well as I was stuck with this and ended up doing it in android studio.
If someone has a solution please share.
Flutter has its own default icon for every app in its Android and Ios folder so there are few steps that I would like to show to change the app icon.
Head over to https://appicon.co/ and generate your own icon using icon image (the zip file contains two main folders android and Assets.xcassets)
For android: Go inside android\app\src\main\res in your flutter app and there paste the android folder content.
For IOS: Go inside ios\Runner in your flutter app and there paste the Assets.xcassets content
Restart your emulator or rebuild your application 😁
I changed the launcher icon file and it's name(from ic_logo to ic_launcher) and made respective changes in the Manifest.
Some devices(Moto-G, Moto Razor) which updated the app since then see the default droid icon instead of the actual ic_launcher icon.
The same devices would see the proper launcher icon if the app is uninstalled and reinstalled, instead of just updating.
It shouldn't be a problem with the folders the icon is placed in. Because it works fine on most of the devices and after uninstall and reinstall on the above mentioned devices. Just for reference:
Anything I can do to make it work in the next update(without uninstalling)?
Clean your project once and then try
For Application Icon, try to put them in #mipmap directory. That's what Google recommends and sometimes stupid bugs happen when you don't follow the guidelines.
Read
mipmap drawables for icons
So, I have developed the first build of my own android flashlight application and I want to distribute it, but the problem is following;
I have created appropriate icon for the application and they all are scaled in the right way too using romannurik.github.io, the icons have been placed, I assume, in the correct way - I browsed to the project directory and replaced all sample icons (stock icons) with my own icons. Now, I have tried rebuilding and cleaning the project, yet nothing helps it.
In Android Studio, under mipmap folder, all icons are located, here is how the folder including pictures looks like
And by clicking on those .png's, I see the icon the application should have, but after I launch it on my phone, it still has the stock icon. Even setting build type to release, it still does the same. I also tried to relaunch the Android Studio and still nothing does it.
Some help? Thanks!
The icon is setted in the AndroidManifest.
<application
android:icon="#mipmap/ic_launcher"
Are you sure that you do not have this?
android:icon="#drawable/ic_launcher"
UPDATE
As you can see from the comments on this post, the user has a malformerd AndroidManifest screenshot manifest
There is a nested application tag with ther android icon property.
You should set application icon in your manifest
I have a problem with setting my icon to the project. I've created different images and placed them in appropriate folders (drawable
ldpi, mdpi and so on) and
set android:icon to my icon in AndroidManifest.xml.
But icons have changed everywhere except desktop .
Have any ideas why?
Working in Intellij IDEA
I got the same issue just now, but I found a trick to solve this problem:
you can just use the refactor function of intellij and rename the icon again. After renaming intellij will recognize this icon and now make the app again and it works for me!
And I noticed that my application has the correct icon on emulator but not on my android device, but it is because of the android system on the phone. If you see that you icon will be shown up on the emulator correctly then you don't need to get worried.