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 trialRicky Sparks
22,249 PointsI cant paste icon share photo in android studio xhdpi folder
The course is in eclipse and i am using android studio
4 Answers
Caleb Kester
1,710 PointsMake sure your icon is out of the zip. I tried pasting the icon from a zip and it didn't work. Once I unzipped it worked.
David Hope
19,876 PointsHi Ricky, are you using a PC or Mac? If you're a PC user, here's what you need to do: First, right click directly on the share icon for xhdpi and select copy. Second, go into Android Studio and right-click paste directly on the drawable_xhdpi file. You will next need to rename it if you're using the social share icon whose file name begins with a number. I hope this helps Ricky!
Ricky Sparks
22,249 PointsStill cant paste it and i also have these errors heres a picture of it http://imgur.com/oXRyubG
David Hope
19,876 PointsIs your issue with the icon confined solely to the xhdpi version Ricky or did you have issues with hdpi and mdpi as well? Does your code for the Log Exception method look anything like the following:
private void logException(Exception e) { Log.e(TAG, "Exception caught!", e); }
Boris Vukobrat
4,248 PointsI think this is known bug in Android Studio. Although there is a solution (holding alt key I think), you could use regular File manager to store res files within project.
Ricky Sparks
22,249 PointsThanks :) it worked
Boris Vukobrat
4,248 PointsRicky James -
I consider dragging as luxury and risky option : ). I often drop it somewhere wrong. So I stick to good ole cut/paste.