Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse and Android and classpath: bin and target

I'm using Eclipse 4.5 with m2e 1.6.1.20150625-2338, ADT 23.0.3.1327240, Android for Maven Eclipse 1.1.0, and 23.0.6.1720515. I have an Android project marked as "Is Library":

If I do a Maven|Update Project... on the project, the .classpath is modified to contain the following:

<classpathentry kind="output" path="target/classes"/>

But then when I build the project, Eclipse changes that line to:

<classpathentry kind="output" path="bin/classes"/>

Apparently there is a disconnect between what Eclipse thinks the classpath should be and what m2e thinks it should be. Obviously this does havoc for my Subversion files.

Is there some setting that will get m2e and Eclipse to agree on the classpath and not modify it?

like image 248
Garret Wilson Avatar asked Aug 03 '14 14:08

Garret Wilson


2 Answers

I might have been too broad the first time so here is what you can do:

Either downgrade your environment back to 4.3 (this is annoying and you have complained about it.)

Or check what version your project is set to. If it is set to android 4.4, try setting the project version to 4.3 or the version your app was working on before you went to 4.4 and it will work (unless something is different with your apps than my apps which is possible.)

like image 134
Tarz Avatar answered Nov 01 '22 09:11

Tarz


See this page Build path incomplete only in some workspaces (Android) .

It may help you to resolve this "The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project " problem. -Aravindan.

like image 1
Aravindan K Avatar answered Nov 01 '22 09:11

Aravindan K