Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 0.40.0 generates icon but it is not showing in android screen #579

Closed
MrCoder75 opened this issue Sep 23, 2024 · 20 comments
Closed
Labels

Comments

@MrCoder75
Copy link

Icon is being successfluuy generated on version 0.31.0 but on the current version 0.40.0 the output of this is
"
flutter pub get
flutter pub run flutter_launcher_icons
"
is sucessful but when on actual phone there is no icon.

@MrCoder75 MrCoder75 added the bug label Sep 23, 2024
@jkoenig134
Copy link

I have the same issue. I think the root cause is the file android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml with content

<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
</adaptive-icon>

is being generated although nothing is configured regarding the adaptive icons.

Deleting this file after generating resolves the issue for me.

@MarkOSullivan94
Copy link
Collaborator

Icon is being successfluuy generated on version 0.31.0 but on the current version 0.40.0 the output of this is " flutter pub get flutter pub run flutter_launcher_icons " is sucessful but when on actual phone there is no icon.

Can you share your pubspec.yaml and which Android SDK you were running the app on please

@jul3zian
Copy link

Same problem here.
pubspec.yaml:
image
I use AndroidSDK 33, minSDK is 23

@yar-tsar
Copy link

I have the same issue. I think the root cause is the file android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml with content

<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
</adaptive-icon>

is being generated although nothing is configured regarding the adaptive icons.

Deleting this file after generating resolves the issue for me.

Really helpful, thank you!

@sibeux
Copy link

sibeux commented Sep 24, 2024

I have the same issue. I think the root cause is the file android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml with content

<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
</adaptive-icon>

is being generated although nothing is configured regarding the adaptive icons.

Deleting this file after generating resolves the issue for me.

wow. it's work for me. thank you so much, sir.

@theahmedhany
Copy link

I have the same issue. I think the root cause is the file android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml with content

<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
</adaptive-icon>

is being generated although nothing is configured regarding the adaptive icons.

Deleting this file after generating resolves the issue for me.

Wow. It works for me after a long struggle. Thank you very much.

@furbierecordsDev
Copy link

I have the same issue. I think the root cause is the file android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml with content

<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
</adaptive-icon>

is being generated although nothing is configured regarding the adaptive icons.

Deleting this file after generating resolves the issue for me.

confirm. it works for me.

@tarunprajapati88
Copy link

I have the same issue. I think the root cause is the file android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml with content

<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
</adaptive-icon>

is being generated although nothing is configured regarding the adaptive icons.

Deleting this file after generating resolves the issue for me.

Thnks buddy , it worked

@m-1226
Copy link

m-1226 commented Sep 28, 2024

I have the same issue. I think the root cause is the file android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml with content

<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
</adaptive-icon>

is being generated although nothing is configured regarding the adaptive icons.
Deleting this file after generating resolves the issue for me.

Thnks buddy , it worked

a Lot of thanks to you

@AyeshaIftikhar
Copy link

I have the same issue. I think the root cause is the file android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml with content

<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
</adaptive-icon>

is being generated although nothing is configured regarding the adaptive icons.

Deleting this file after generating resolves the issue for me.

After spending 2 days, it finally got resolved with your answer. Thanks alot

@BaoTrung37
Copy link

I have the same issue. I think the root cause is the file android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml with content

<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
</adaptive-icon>

is being generated although nothing is configured regarding the adaptive icons.

Deleting this file after generating resolves the issue for me.

It worked for me. Thanks alot.

@AlexandreDevaux
Copy link

It worked for me too, Thank you !

I have the same issue. I think the root cause is the file android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml with content

<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
</adaptive-icon>

is being generated although nothing is configured regarding the adaptive icons.

Deleting this file after generating resolves the issue for me.

@fandiidnaf
Copy link

It worked for me. Thanks alot. In my case the file name is launcher_icon.xml

I have the same issue. I think the root cause is the file android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml with content

<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
</adaptive-icon>

is being generated although nothing is configured regarding the adaptive icons.

Deleting this file after generating resolves the issue for me.

@NicoRiri
Copy link

I have the same issue. I think the root cause is the file android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml with content

<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
</adaptive-icon>

is being generated although nothing is configured regarding the adaptive icons.

Deleting this file after generating resolves the issue for me.

Thank you brother for putting me out of my 2 and a half hour despair.

@itsvinayyay
Copy link

I have the same issue. I think the root cause is the file android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml with content

<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
</adaptive-icon>

is being generated although nothing is configured regarding the adaptive icons.

Deleting this file after generating resolves the issue for me.

Like everyone it worked for me too!!
Thanks!!

@franciscoangelmtz
Copy link

I have the same issue. I think the root cause is the file android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml with content

<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
</adaptive-icon>

is being generated although nothing is configured regarding the adaptive icons.

Deleting this file after generating resolves the issue for me.

It worked! Thanks!

@PiousLayman
Copy link

I have the same issue. I think the root cause is the file android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml with content

<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
</adaptive-icon>

is being generated although nothing is configured regarding the adaptive icons.

Deleting this file after generating resolves the issue for me.

Worked for me too!

@martin2236
Copy link

In my case, I had to delete the launcher_icon.xml file in android/app/src/main/res/mipmap-anydpi-v26 for it to work.

@NoealRajeev
Copy link

I have the same issue. I think the root cause is the file android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml with content

<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
</adaptive-icon>

is being generated although nothing is configured regarding the adaptive icons.

Deleting this file after generating resolves the issue for me.

It worked! Thanks!

@HelloXiongQ
Copy link

我有同样的问题。我认为根本原因是文件android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml内容

<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
</adaptive-icon>

尽管没有配置自适应图标,但正在生成。

生成后删除此文件可以解决我的问题。

成功了谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests