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 Blog Reader Android App Adapting Data for Display in a List Finishing Our AsyncTask

Error in r.java despite no changes being made

public static final class array {
        public static final int android-names=0x7f050000;
    }

I get 5 errors

3 Answers

Hi there, there are some reasons your R.java file has committed suicide, honestly that is one of the top reasons I don't use eclipse anymore, but there are some ways for you to solve it, first you must try to check if you added some files to the res folder that had the name too large or with uppercase in it and change it to short and lowercase. If neither of that happened to you then you may need to download the android build tools, the steps for that are in this link http://stackoverflow.com/questions/16584015/java-eclipse-no-more-r-file-ever/16584243#16584243

After that you just need to rebuild your project and clean it.

Hope this works for you.

PD. If you tried to rebuild your R.java (using the quick fix from eclipse) then you will have to delete it from your project because it's empty and it's only getting in the way.

I am using Android Studio not Eclipse but I'll check it out

It still does not work - I still have errors