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

Can you help me solve this problem, please? Images preventing compile...

All the images imported into the drawable folder correctly, and there are no errors until I try to start the app in the emulator when I get the following problems in XML:

Error:(13, 23) No resource found that matches the given name (at 'icon' with value '@mipmap/ic_launcher').

Error:Execution failed for task ':app:processDebugResources'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Ajsea\AppData\Local\Android\sdk\build-tools\22.0.1\aapt.exe'' finished with non-zero exit value 1

3 Answers

Is the icon in your drawable folder? At the moment you have it pointing to mipmap. Those are two different locations.

Correct. Do I need to move the icon file? If so, where?

You can either move the icon files to the corresponding mipmap folder (mipmap-hdpi, mipmap-xhdpi etc) or you can change the code and swap the word mipmap for drawable.