I found many postings concerning this error, but none of the solutions 
worked for me.

I have project A, B, and C. Projects A and B are marked as library 
projects, project B imports project A as a library, and project C imports 
project B. When running project C from eclipse, I get the below error.
 

"java.lang.IllegalArgumentException: already added: projectA/R;"

 

Upon investigation, the generated R files for projects A and B are 
contained in the jar file create for project B, which is included in 
project C's android dependencies. Also, projects C contains R files for 
both project A and project B in its /gen folder.

I assume this is causing the error, the R files appear twice on the 
classpath because they are in the android dependencies and the gen folder. 
If this is the cause, is there any way to fix it?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to