tjb
tjb

Reputation: 11728

Can you force compilation despite errors

Is it possible to build and compile an Android applications even though it has errors and missing classes? (Assume the errors are in classes that won't be used during a round of testing for example).

Upvotes: 0

Views: 275

Answers (2)

Jorge Cevallos
Jorge Cevallos

Reputation: 3678

No, it's not possible to do that. You could temporarily comment incomplete code which is preventing compilation.

Upvotes: 0

CommonsWare
CommonsWare

Reputation: 1006839

No. Java, like many compiled environments, wants to compile the entire source tree on a build, certainly in the way Android does it.

However, presumably you could comment out the compile errors and references to missing classes, to get a clean compile, if those things are not needed at the moment.

Upvotes: 2

Related Questions