Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R.java not getting generated with Intellij Idea 12

I am brand new to android development and i am working with IntelliJ Idea 12. Everything is set up correctly but one problem i am facing is that my R.java file inside gen folder does not have the code that should have been there.I think this code should have been auto generated but it's not present there. Here are the links on on what my project structure looks like:

I could not post more than two links, so here is the link to gallery: http://postimage.org/gallery/19189wei/

It contains my string.xml , main.xml , R.java , HaikuDisplay.java So i wanted to know where's the problem?

like image 500
user1788048 Avatar asked Nov 15 '12 10:11

user1788048


1 Answers

I wouldn't bother looking at the R file - mine is empty as well and it doesn't matter. Try type R. and see what's available. If you're not setting your stuff, make sure you're not Importing Android.R in your imports - that will override your R and use the one in the SDK directory. Hope that helps.

like image 176
bsautner Avatar answered Oct 23 '22 16:10

bsautner