Android project is broken in Eclipse after ant build

I had a project that worked fully in Eclipse, but after compiling it with ant to use Proguard to obfuscate the code, the whole project fell apart.

The project consists of one package containing two main activities and 4 auxiliary classes for processing databases, etc. After using ant, the actions work fine, but Eclipse cannot find helper classes and will not create. Even if I import classes explicitly, I get an error The import com.ts.routeTracking.DataHelper cannot be resolved, while additional class references get an error DataHelper cannot be resolved to a type.

How can I get Eclipse and ant to work together?

+3
source share
1 answer

This probably means that ant and Eclipse use the same output directory. You can change the output directory by adding it to your file build.propertiesor ant.properties.

out.dir=bin-ant

To start Eclipse again, select Project → Clean. This should restore all the files that Eclipse works with.

+7
source

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


All Articles