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 (retired 2014) Pretty Little Things Adding an Image

Trouble copying Crystalball01.png into eclipse

I get an error message that reads "Cannot import. The source and destination are not the same" Help?

2 Answers

Are you dragging it into the right place i.e. drawable-mdpi?
If you are dragging it right into the Graphical layout (activity_main.xml) it might not work.
In the package explorer on the right where all your folders are i.e. res, bin, src gen .. expand res and then expand drawable-mdpi. Now drag and drop your in there with the ic_launcher.png file .
If it still gives an error delete everything in that folder i.e. drawable-mdpi and try dragging an dropping the image again
If it still doesn't work, you can do the old time trick of locating your project in the computer probably in My Documents unless you have changed it, and then copy pasting the image file in the res - > drawable-mdpi folder. Refresh eclipse and you will see your image file to use

Thanks Gunjeet. A restart of Eclipse was all it took. :)