Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Simple Android App Improving Our Code Adding an App Icon

Heather Crummer
Heather Crummer
13,558 Points

When attempting to paste the images into the mipmap file, I got no response. This is my workaround. Any shorter ways?

Right clicking on paste on the mipmap file did absolutely nothing. I ended up opening the mipmap file on my computer (right clicking on the mipmap file in Android Studio gives you a nice option called file path that shows you where its stored, if you don't know). I then pasted each image into the appropriate file, overriding the original image each time. It worked fine but does anyone else know a better way or why paste failed to work?

Harry James
Harry James
14,780 Points

Hey Heather!

Are you running a Windows PC? If so, can you try out running Android Studio with Administrator rights (Right-click when opening) and let me know if this has any effect?

Heather Crummer
Heather Crummer
13,558 Points

Hello, Harry. I AM running a Windows PC with Windows 10 OS. I probably should've said that. I tried running it with Admin rights, but it still does absolutely nothing when I try to copy the icon pics into the mipmap file. Thanks for responding so soon, though.

6 Answers

Harry James
Harry James
14,780 Points

Hey Heather!

Hope you had a Happy New Year! Strange that Android Studio still won't copy the files across - are you using the latest version of Android Studio? If not, update the program under Help >> Check for Update....

If you are in fact running the latest version, I would consider sending in a Bug Report to the team. To do this, go to Help >> Submit Feedback. This will create a new bug report and send it off to Google, containing details about your system that can be used to help fix the issue. You will probably also be asked to provide a log file as you try to paste a file, which can be used to help the team fix your issue.


Good luck and do in the meantime use the standard method of Windows Explorer until you can get the issue fixed :)

Heather Crummer
Heather Crummer
13,558 Points

Thanks! I didn't realize I could open Windows Explorer directly from Android Studio. Easier than opening the file path :)

Another way besides the helpful posts above, is to right click the mipmap folder and click on "add image asset", follow the instructions and pick your image, the style of your image: circle, square, padded etc. You are done! Android Studio will automatically convert each of the images and scale them to their appropriate resolution.

Harry James
Harry James
14,780 Points

Nice find Erick!

I wasn't aware of this! Will definitely take into account in the future if I run into any issues :)

Instructions:

  1. Right click mipmap folder
  2. Select the first option "new"
  3. on the right side another menu list will pop up and click "Image asset"
  4. Browse for image
  5. Customize
  6. Done!
Heather Crummer
Heather Crummer
13,558 Points

Awesome! It's fun exploring and finding all these little shortcuts.

Heather Crummer
Heather Crummer
13,558 Points

Update: I had a few other problems with Android Studio, but as of today, they have been fixed. I guess there were some bugs that have since been eradicated.

Joyce Chidiadi
Joyce Chidiadi
1,867 Points

I want to use a different icon for my app. I have added the image to my mipmap folder but it still shows the ic_launcher icon image. Can I delete the ic_launcher image from my res directory, so that my chosen image can replace the app icon?

Joyce Chidiadi
Joyce Chidiadi
1,867 Points

I deleted the ic_launcher and it worked. Yeh!

Ivailo Hristov
Ivailo Hristov
6,297 Points

I had exactly the same problem until i unzip that file ... I forgot to unzip it :)