• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps R.java error

Freakz

Lurker
Hi!

I am completely new to android development and I would really hope to make it my job some day. The problem on the other hand is that i get errors even before i have written any code. Stuff like this happens to me all the time when I try something new but this time I couldn't find anything about this on any other website. The problem is that the R.java file isn't present in my gen folder. I have seen a bunch of others having the same problem but they have been programming for a while and they have custom resources. The fix for them was to rename all their resources into lowercase and a-z 0-9 names but as I haven't added any resources whatsoever and all the "base" resources have correct names that wouldn't work for me. I have tried creating a new project and cleaning it but nothing seems to work.
I followed all the steps on the android developer website.

Please help!
 
The website didn't really help as i already have tried to clean it with both automatic build on and off.
I guess google don't want me to develop.
Thanks for the support anyway. :(
 
You shoudl read through all those answers and try them.

are you saying you are actually NOT writing one single thing and it has this error? then you should check you have the sdk setup properly for your specific computer.

if you were writing stuff, it is most likely an xml error.

and sometimes eclipse is just weird and needs to be shut down and restarted.

keep at it and you'll figure it out. programming is a lot of time spent on trying to figure out weird bugs and errors, better get used to it.
 
There is an early access available for Android Developer Studio. This is not complete yet, but it is already better at finding errors in your XML than eclipse. just google "Getting Started with Android Studio".
 
Back
Top Bottom