Android IDEA and eclipse interoperability

I am working on some Android projects with a friend. My friend likes eclipse, and I'm using IntelliJ IDEA. My problem is getting the two to run off the same .classpaths, so I can check it in to source control, and not have to worry about who is using which IDE.

I have most everything figured out, the only problem that I see so far is that IntelliJ adds an entry for the Android framework to use, while eclipse adds its own entry.

<classpathentry kind="con" path=""/>

<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/Android 2.2 Platform"/>

The two don't play well together. IDEA seems to be able to ignore eclipse's classpath and go about it's day (don't even notice it can't be resolved unless I look at the Module settings and it's in red with a question mark globe icon). Eclipse, on the other hand, won't let me build with IDEA's entry in the .classpath. Eclipse tells me "Unbound classpath container: 'JRE System Library [Android 2.2 Platform]'" And that the project can't be built until build path errors are resolved.

here is the Build Path configuration screen from Eclipse:

Is there any way to make IntelliJ IDEA behave more like eclipse, so that they can use the same Android Framework classpath reference?

Perhaps there is a way that I can use a variable called ANDROID_FRAMEWORK or something of that nature (even if it needs to be configured on the eclipse side as well)?

Please sign in to leave a comment.