Explanation:
I have a working app in google play market. Everything works fine in
android versions from 4.0-7.0.
Case:
When the client downloaded it on his Android 8.0 (Oreo) a launcher
icon did not seem to show instead android's default launcher icon is
showing!!
Question:
Anyone who has encountered such issue? I need any hints to solve it since it seems weird because I have all 4 typed .png icons in mipmap folder.
Yes, I also faced the same issue in Android Oreo.
1) Add your images by adding in Image Vector
This might not be the ideal solution. But deleting the directory named mipmap-anydpi-v26 will resolve the issue if you have correct icons in relevant folders.
I was having the same problem make sure you have set drawable or mipmap to icon attribute as well as roundIcon attribute under application tag in your Manifest file
<application
android:icon="#drawable/ic_launcher"
android:roundIcon="#mipmap/ic_launcher_round">
</application>
This might resolve someone's issue. Thanks.
None of the previous answers worked for me. I discovered my project had a file app/src/main/res/drawable-v24/ic_launcher_foreground.xml while another project didn't. That was the reason the other project did have an icon in Android 8 and this project not. When I removed the drawable-v24 folder I got my icon back!
Try restart your mobile and install app on device
Use a .png image in the Image Asset tool to generate launcher icon.
Android -> Project -> App - > src -> res
right-click on res then -> new -> image asset -> inside add image set as your logo ratio
Related
I want to add a new vector asset. I am trying to add a clipArt but it only shows in the dialog box "Nothing to show". No icon is showing and I want to add an icon. I don't know to fix this. Please help. I am still trying to learn android studio and I am practicing on how to use it.
For myself, my asset dialog only shows some of these icons. And here is my solution.
Go to
[SdkPath]/icons/material
There should be a file called icons_metadata.txt, and folders
materialicons
materialiconsoutlined
materialiconsround
materialiconssharp
materialiconstwotone
For each icon, there will be one folder in the folders above. For example, we have materialicons/share, materialiconsoutlined/share and so on.
These icon folders are not complete, only icons starting with digits exist. Since the folder only updated when "Select Icon" dialog is opening, I opened "Select Icon" dialog again, waiting for all icons are downloaded, and then reopen the dialog.
Then my problem is solved.
This a new problem introduced in the latest version of Android Studio 4.1.
This happens when your windows user name folder contains a space. Rename your user name’s folder removing the space and it will work again.
For some reason the space make the folder where the icons are located not visible to Android Studio.
If there are already this folders and still nothing in dialog try deleting <sdk>/icons/material/icons_metadata.txt
Credit to
#MainActivity
Those clip arts are located in "icons" folder inside your sdk folder on your hard drive and the sdk folder is generally this:
C:\Users\ --username-- \AppData\Local\Android\Sdk
I guess android studio cannot access the right sdk location so make sure the sdk location in your "File/Project Structure/SDK Location" matches the actual sdk location on your hard drive.
Alternatively, you can download the clip art you need from this link: Android Material and import them by choosing Local file in your Asset Studio.
In Android Studio 4.1.1 this issue is resolved. Update if possible.
It's working
Your SDK folder name must be spaced less, ex- (UTTAM, UttamSdk, Uttam_sdk)
HAPPY CODING :)
Same thing happened with me, also i was not able to change my user name because of Win 10 Single Lang. so i just moved my SDK folder to another path but there was not space between the path like from >> C:\Users\User Name\AppData\Local\Android\Sdk to >> C:\Users\Sdk.
I'm using the flutter_launcher_icons package to generate launcher icons for both Android and iOS. Everything looks great on iOS, but on Android the icon looks very tiny:
It's the second one from the left. I've tried all kinds of things to get it to be bigger. I've tried several different source images to generate the icon, 512x512 and 900x900, but no matter what I do I can't get it to generate an icon as large as the others. I'm sure I'm missing something stupid here. This is my flutter_launcher_icons config:
flutter_icons:
android: true
ios: true
image_path: "assets/icon/icon_new2.png"
I would recommend you to use http://romannurik.github.io/AndroidAssetStudio/icons-launcher.html to generate your launcher icon : you'll be able to reduce padding to get an icon as big as possible. When you hit download, this will generate a zip archive containing a res folder with a subfolder for each size.
Let's then put manually the Android launcher icon :
In your config, put android: false so the flutter_launcher_icons plugins stops generating icons for android, and paste your generated subfolders in yourproject/android/res
I encountered the same issue as you, looks like we followed the same tutorials/links.
EDIT : If you still encounter issues, this thread may help you (almost a duplicate) App Icon on Device is too small
For all the flutter android projects, for those who are still facing issues after generating icons from here, http://romannurik.github.io/AndroidAssetStudio/icons-launcher.html follow the below steps,
Open your flutter project in Android Studio
Select the android folder and Right click
Select the option flutter->Open Android Module in Android Studio ( open in new window)
It will take a while, once its done, in the android project, right click on res->drawable folder, and create new image asset
Create the launcher icons using your image in this android studio wizard.
Once the launcher icons are created, build your apk or app bundle asusual from your flutter project. It should work fine now.
To complement the answer of the user TBG, in my case, the path where I had to put the res folder was in youproject/android/app/src/main/, replace what you have and voila, recompile your project.
I am on trying to add an Image Asset to my Android project. However, it keeps having this error about a file I don't even have selected.
I am on Android Studio 3.2
I don't understand where that gradient.psd came from but you may want to take a look at this solution here: Android Studio not loading image when creating new image asset
I came across this problem while importing Google logo and I worked around by having the Icon Type as Launcher Icons (Legacy Only)
The app logo on updating the app is not changing for my Moto G 1st Generation phone. Also I've two apps as "Google Photos". Don't know what to do with that??
Help!
Try to clean the Project by going to
1.Eclipse->Project->Clean it will rebuild the .apk file.
Make sure that both 'Google Photos' apps should have different package name as well.
In the resource folder the image files should have name in lowercase only, or else the XML will not able to get it, eg; file name Should not be like this Image.png, it should be image.png.
Possible that you have different drawables for ic_launcher or logo in your hdpi/xhdpi/xxhdpi folders.
I develop a simple program and I want to change the icon. That is the mean to change the ic_launcher.png file in every drawable folder.
I compile in simulator, it can run well. It has changed the new icon. When I install the mobile phone and run, it is still display the old icon. What is the problem?
Try this way:
<application android:icon="#drawable/ic_launcher" android:label="#string/app_name">
Instead of:
<application android:icon="#+drawable/ic_launcher" android:label="#string/app_name">
Just remove "+" sign from android:icon="#+drawable/ic_launcher" .
Thanks.
Change icons in all the drawable folders : hdpi/mdpi/ldpi
Your phone might be a hdpi device and you may be changing the icon in ldpi(for example)
.Clean your project and uninstall the old apk file from device and reinstall the new apk.
If you're updating an app rather than installing for the first time, then the launcher icon won't be replaced. You need to fully uninstall the app and install it fresh.
Did you try that in other mobile phone ? The problem is maybe in caching but im not sure.
That is really strange, but maybe you have changed only one of icons, i mean that you have to change all versions of icon in res/drawable, res/drawable-hdpi, res/drawable-ldpi, res/drawable-mdpi, res/drawable-xdpi
Follow the steps to resolve this problem
1.unistall tthe app and Restart your phone
2.clean project and build project
3.run the app in the phone to see changed icon of the App