- Home /
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.
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:
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.
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
Thank you for your answer, but I'm not sure what you mean.....
Answer by yoji_maru · Mar 07, 2018 at 11:00 AM
Nice One... Thanks For your problem. now i can follow this Answer
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
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
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.
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.
Your answer
Follow this Question
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