Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA 12 duplicate class R.java and BuildConfig.java

I use Eclipse for android development and trying to use IntelliJ. I have successfully run the application once. But now, I couldn't seem to rebuild the example Hello World application. What am I missing here? The R.java is not rebuilding anymore. Here is a screenshot of the errors.

enter image description here

And here is my setting

enter image description here

like image 986
bman Avatar asked Oct 05 '13 00:10

bman


1 Answers

This happened to me because I've marked source folders incorrectly. Under project settings once you click on particular module, Just check whether you have Mark any additional folders as source folders. Check the screenshot, By default it should be something like below, All mark as buttons should be unchecked

enter image description here

By mistake I've checked Mark as: "Source" button and I got this error. Just uncheck it.

like image 143
Yasitha Waduge Avatar answered Nov 15 '22 19:11

Yasitha Waduge