Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with R.java

 
Rohan Deshmkh
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using intelliJ 12 and i am experiencing weird problems regarding R.java in gen folder.
I just started with android programming and have made 2-3 very very simple apps, all of them runs correctly.But all of them have one common problem:
My R.java file inside gen folder is not getting generated automatically, so it does not contain the code that should be present there.But still my apps runs fully.Is there a way to fix this?
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't use IntelliJ but sounds like you have an IDE refresh issue. Maybe you can try refreshing the file/workspace?
 
Rohan Deshmkh
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:I don't use IntelliJ but sounds like you have an IDE refresh issue. Maybe you can try refreshing the file/workspace?


I tried android with eclipse first , but i didn't liked it, it was very slow on my pc.But then i tried intelliJ12 and i loved it.It's very fast as compared to eclipse.So, the point is i am also new to Intellij, i tried the option "Force regenerate R.java" but still nothing happens.I will now figure out how to refresh file or workspace in Intellij as it's not visible when you right click the project .
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IntelliJ 12 hasn't been released yet; maybe a bug in the beta version?
 
Rohan Deshmkh
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:IntelliJ 12 hasn't been released yet; maybe a bug in the beta version?


OK thanks i am downloading version 11 now, i will install it and report back if it works or not.
 
Rohan Deshmkh
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes seems like a bug, R.java is getting generated in version 11 properly.Looks like version 11 does not have xml gui builder, waiting for version 12 which will be releasing in December.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic