Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by MicroGT · Jun 07, 2016 at 12:34 PM · androidandroid-manifesticonicons

App icon problem on android

Hello everybody,

I have somewhat of a strange problem, after building my game for android, the app doesn't use the custom icon I assigned in the player settings, instead it used the android robot icon. The game itself works perfectly, I tried building the apk under a different name, building to a different directory, updating the unity editor from 5.0 to 5.3, using different sized icons and choosing the "override for android" option in the player settings and trying to build on a different machine, but none of these solutions seemed to work, I also changed the file extension from apk to zip and went inside to try and change the icon manually but inside I only found the custom icon which I had created...

At one point I completely gave up on changing the icon and decided that I'd just have to publish the game the way it is, however google play store wouldn't accept my apk telling me that it doesn't have an icon..

I'm at a complete loss and standstill, this is the only thing keeping me from publish my game and I have seemingly tried everything. I have a feeling that It could have something to do with the android manifest seeing how I have a few plugins installed, but I don't know how I would deal with that as I don't have any experience what so ever in editing the manifest.

Oh, and I did try to build for windows, everything worked just fine and it used my custom icon, so this is an android problem only.

Any help would be very much appreciated.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

5 Replies

· Add your reply
  • Sort: 
avatar image
4
Best Answer

Answer by MicroGT · Jun 08, 2016 at 04:18 PM

Well, I finally solved it, as I suspected, it was a problem with the manifest file and adding:

android:icon="@drawable/app_icon"

right under:

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Lao2211 · Sep 01, 2017 at 01:21 AM 0
Share

The Unity docs instructs us to use AndroidStudio to generate a valid Android$$anonymous$$anifest.xml file, but it is an error to assume that they named the icon drawable resource after ic_launcher, like in a default manifest. I removed the icon declaration from the manifest, thinking that that would result in Unity using the one in PlayerSettings. Unity accepts such manifest but then the app gets the default icon. "@drawable/app_icon" is how we must refer to the icon resource.

avatar image
0

Answer by Superhirn3 · Jun 07, 2016 at 02:38 PM

Maybe you need to update your apk ;) You can select the new folder (with the new apk) in the player settings

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image MicroGT · Jun 07, 2016 at 03:24 PM 0
Share

Thank you for your answer, but I'm not sure what you mean.....

avatar image Superhirn3 · Jun 07, 2016 at 04:46 PM 0
Share

oh sorry, my bad... you need the android sdk

avatar image
0

Answer by yoji_maru · Mar 07, 2018 at 11:00 AM

Nice One... Thanks For your problem. now i can follow this Answer

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image MicroGT · Aug 06, 2018 at 09:42 AM 0
Share

Glad I could help :)

avatar image
0

Answer by mrmeizongo · Aug 06, 2018 at 01:21 AM

Hi, how did you resolve your issue? I've been plagued by this issue for over a week and nobody is answering my question on this forum. My problem is even more peculiar. Initially I didn't even know I had that problem because it works perfectly on my phone, my icon shows and everything is beautiful. I published the game only for 3 of my friends to download and have the default unity icon on their phone. I've literally done everything I could possibly do but the icon only shows on my phone and nowhere else. Can I get some help please? @MicroGT

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image MicroGT · Aug 06, 2018 at 09:41 AM 0
Share

Hello,

It's been a long time so I vaguely remember but you have to open your android manifest and add this line: android:icon="@drawable/app_icon

avatar image mrmeizongo MicroGT · Aug 06, 2018 at 10:45 PM 1
Share

I fixed it already. I just had to delete and re-import an android plugin I was using. It came with an androidmanifest.xml file that was causing a conflict with my game androidmanifest. Thanks.

avatar image
0

Answer by KingKong320 · Oct 23, 2018 at 07:21 AM

i searched in project tab "icon" ,and i got a file with name app_icon.xml under Plugin>android>res>drawable-anydpi-v26 an the was also an image under Plugin>android>res>drawable i replaced my original game icon by giving it same name and size of icon. its working now.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

9 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Android Icon problem 0 Answers

Android Build Failed @icon=@mipmap/app_icon 0 Answers

No Adaptive icon settings 0 Answers

After installing the .apk , the App Icon appears twice 1 Answer

Application doesn't respond after pressing home. 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges