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

Harry James
Harry James
14,780 Points

FIX: New directory names

Hey Treehouse Forum users!

There has been a recent change to Android Studio where the folders are now called mipmaps rather than drawables. This has caused a bit of confusion for a few people new to Android Development (As this is a Beginners course) so here are two steps that you can use to fix this issue if you are using the latest versions of Android Studio (Pick one).


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

Note that this is not the recommended approach - mipmap folders tend to be reserved for app icons and drawable folders reserved for other images

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 anybody has any questions, give me a shout :) (Keep it on topic though - if it is unrelated to this topic, feel free to tag me with @Harry James).

2 Answers

Harry James , So which one do you recommend ? Because what i personally tested was putting the icons in de mipmap and the rest in the drawable folders. On assigning an image to the imageView it could not find the images. For example the page 0 to 6. I eventually took your download link, but shouldn't it be able to work by putting images in the drawable folder ? that's what it was meant for wasn't it xP ?