Fix compilation for embedded Android

Cannot use the java plugin

Change-Id: I0b52170f56596081ccd4c5eb7c1ab54bad281d88
Reviewed-by: Christian Stromme <christian.stromme@digia.com>