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 an Interactive Story App (Retired) User Input Introducing ImageViews

William Storrs
William Storrs
2,167 Points

Emulator Errors

Hello, After trying to run the emulator, I receive the following errors:

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\User1\AppData\Local\Android\sdk\build-tools\21.1.2\aapt.exe'' finished with non-zero exit value 1

Does anyone know what is causing these? Thanks in advance!

Make sure your IDs in the layout match up to your variable declarations in the activity.

Also, consider testing on a real device if you own an Android phone. That's what I do and it makes life much, much, easier for testing apps real time.

2 Answers

IT worked for me Thanks am using the mipmap now

Harry James
Harry James
14,780 Points

Hey William!

There has been a recent change to Android Studio where the folders are now called mipmaps rather than drawables. I am guessing that here you tried to overwrite the files but, instead of overwriting it created new files instead. You have two options to go about this:


Update the directory names

You can simply rename the drawable- files to mipmap- instead.

I've done this for you if you would prefer to simply extract the files directly into their directory - you can download the pre-made files here


Change from mipmaps to drawable files

You can keep with the drawable format used in this project by opening your AndroidManifest.xml file (Located in the res directory) and then changing this code:

<!-- (-) DELETE THIS LINE: android:icon="@mipmap/ic_launcher" - Replace with the line below \/ -->
android:icon="@drawable/ic_launcher"

Hope it helps and if you have any more questions, give me a shout :)