Cannot change default output folder

everything

I cannot change the default output folder in Eclipse.

When I open Properties → Java Build Path → Source, the default output folder

<project_name>/bin/classes 

I changed it to

 <project_name>/bin 

save and clean this project. He changed to

 <project_name>/bin/classes 

This happened after updating my ADT plugin to 15.0.1

Some configurations:

 Eclipse: Eclipse IDE for Java Developers<br/> Version: Indigo Service Release 1<br/> Build id: 20110916-0149 ADT Version: 15.0.1.v201111031820-219398 OS: Mac 10.7.2 SCM: Git 1.7.4.4 

Any suggestions are welcome.

Thanks Johnny

+7
source share
1 answer

From Android Changes in Edition 14 :

Go to the bin output folder. While the Ant build system puts javac output in bin / classes /, the Android configuration projects in Eclipse use bin /, like standard Java projects. This was always a small problem, because we put other files there (for example, apk and dex files), but you also need to use this folder as the source dex step. Fortunately, dex would simply ignore these files. since we also started placing resource elements (png crunch cache), we decided to change the project release (as far as JDT is concerned) to bin / classes /. ADT still uses bin / as its top-level output folder for specific Android files. The visible side effect is that bin / will now appear in the Package Explorer view (but not bin / classes / as JDT hides the only output folder that it knows about).

This seems to imply that Android has its own build settings and replaces the JDT build settings (ie, the "output folder" under "Properties-> Java Build Path-> Sources").

The "The Little Madness" blog describes how to change the out.dir ADT Ant property by adding / changing the assembly of the .properties file in the project root folder. You can also change the location of gen.dir using build.properties.

 out.dir=bin gen.dir=gen 

Note that in the past, Eclipse had problems with external tools that modify classes in its output folder, and if possible, out.dir = bin / classes for this reason.

Disclaimer: I have not tried this yet. This suggestion cannot fix anything, cause various problems or, hopefully, work.

+6
source

All Articles