0

IJ 11 + Android + ActionBarSherlock not recognizing R.java

Not new to Java or to IJ, but brand new to Android development.

I've inherited a project from a develoer who used eclipse, created the IJ project from the eclipse projects.

Directory structure is:
Main
Main/lib/ActionBarSherlock
...

where Main and ActionBarSherlock are both eclipse project roots. It builds fine in eclipse.

My IJ modules are, accordingly, Main and Main/lib/ActionBarSherlock.

When I go to build the project or the ABS module inside IJ, on various ABS classes, the compile fails and in the messages, I get "cannot find symbol R" on a import com.actionbarsherlock.R; statement. Here's the weird part: When I dtl-B on the R in the import or an any use of it in the classes, it's fine. The source file has no red squigglies, but the Build fails.

Whence the disconnect, and how do I fix it?

(Note that I don't currently have an Android Facet set up for the ABS module. I had it previously, but I got all kinds of complaints in the xml files.)

Thanks in advance for any help!

(I've crossposted this to http://www.coderanch.com/t/594158/Android/Mobile/IJ-Android-ActionBarSherlock-not-recognizing.)

2 comments

Please sign in to leave a comment.