Generate Ant buildfiles error

Im trying to generate ant buildfiles. But Im getting an error

"The build class path order of the source directories of project library is not correct. Exported Ant buildfile will not compile your sources correctly until you swap the order of these directories: gen<->src" 

Im creating from eclipse using file-> export -> Ant -buildfile

When I try to build from the command line, I get:

 $ ant debug Buildfile: /build.xml BUILD FAILED Target "debug" does not exist in the project "com.Grupp01.gymapp.MainActivity". 

Screen capture errors and eclipses: enter image description here

+4
source share
2 answers

I had the same samples. The solution was: right-click on the library → Properties → Java Build Path → Order and Export. The gen entry should be up and then src (use the up, down buttons).

+4
source

I did this with these steps.

Right click on your project -> Properties -> Java Build Path -> "gen" should be higher than "src". So rephrase the folders. It worked for me.

0
source

Source: https://habr.com/ru/post/1439762/


All Articles