IntelliJ 14.0.3 can't find R.java
I don't know what to say beyond the subject. I had a working project. Then I updated. Now when I compile, for every module, it complains that it can't find R.java for that project, even though it's right where it's supposed to be and always has been.
I tried changing from my custom output directory to the default .../gen. No joy.
Then I removed the module, deleted the .iml file, and recreated from scratch, using the default .../gen. That worked. But I really don't wan to have to do that for every module in every project.
Please sign in to leave a comment.
Same here. "Error:(11, 25) java: package R does not exist" after rebuilding project.
I only ran into this error today after updating to 14.0.3. I've trashed cache and preferences. I can get it to compile after doing some voodoo with Build -> Make. Or right clicking on specific modules-> Make Module.
Edit: I switched back to 14.0.2, problem solved for now.
I ended up reverting to 14.0.2 as well (but only after wasting about half a day trying to get it to work on .03).
Same error with myself and another developer here. The other developer reported that reverting to 14.0.2 fixed it.
Thanks for the confirmation guys. At least I know it's not just me.
I also updated, and now get the same error.
May I ask how, or where any of us can find the 14.0.2 version so we can revert, and continue with our work?
I just hacked the URL, changed the version.
http://download.jetbrains.com/idea/ideaIU-14.0.2.dmg
http://download.jetbrains.com/idea/ideaIU-14.0.2.exe
kudo's friend - thanks for the quick reply!
Here's the issue in YouTrack. Somebody has been able to make a simple test case for JetBrains to test. Go here and vote for the issue to track it.
https://youtrack.jetbrains.com/issue/IDEA-135234
Also,
https://youtrack.jetbrains.com/issue/IDEA-135831
Same problem here.
I have a project with two modules. One are a library module.
Every time I add a new resource the build stop with this problem.
Then I have to compile each module individually before run the application.
And sometimes intellij is making confusion with android resources. it is change the resources in application.