wood burning stoves*
The moose likes Android and the fly likes Problem with R.java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Problem with R.java" Watch "Problem with R.java" New topic
Author

Problem with R.java

Rohan Deshmkh
Ranch Hand

Joined: Aug 31, 2012
Posts: 127
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

Joined: Jul 26, 2007
Posts: 10167
    
    8

I don't use IntelliJ but sounds like you have an IDE refresh issue. Maybe you can try refreshing the file/workspace?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Rohan Deshmkh
Ranch Hand

Joined: Aug 31, 2012
Posts: 127
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
Marshal

Joined: Mar 22, 2005
Posts: 41069
    
  43
IntelliJ 12 hasn't been released yet; maybe a bug in the beta version?


Ping & DNS - my free Android networking tools app
Rohan Deshmkh
Ranch Hand

Joined: Aug 31, 2012
Posts: 127
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

Joined: Aug 31, 2012
Posts: 127
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with R.java
 
Similar Threads
Project.apk file is not installing in emulator-5554
When tomcat starts...
Android Tutorial: Hello World
Generic
Looking for some tips for a prod environment