I was wondering how to change the launcher icon in Android Studio.
We can replace the code in the AndroidManifest file in the application tag
android:icon="@drawable/logo"
Click app/manifests/AndroidManifest.xml
You see android:icon="@mipmap/your image name"
Also change android:roundicon="@mipmap/your image name"
Example:
android:icon="@mipmap/image"
that's all
I created my icons using this tool:
https://romannurik.github.io/AndroidAssetStudio/index.html
After I downloaded these (they were already pre named to ic_launcher, very useful!) I found the
mipmap ic_launcher folder under the res folder
and I replaced the pre icons with the ones I created. Reinstall your app, and you'll see your new icon!
Go to:
res > drawable > right click > show in folder > add desired logo
Then go to android manifest, edit ICON tag under application tag, use "@drawable/nameOfImage"
To quickly create a new set of icons and change the launcher icon in Android Studio, you can:
Use this tool: https://romannurik.github.io/AndroidAssetStudio/icons-launcher.html to upload your preferred image or icon (your source file). The tool then automatically creates a set of icons in all the different resolutions for the ic_launcher.png.
Download the zip-file created by the tool, extract everything (which will create a folder structure for all the different resolutions) and then replace all the icons inside your project res folder: <AndroidStudioProjectPath>\app\src\main\res
In the manifest file, under the tag, there will be a similar line:
android:icon="drawable_resource_path"
Place the launcher icon you want in drawable folder and write its resource path.