dont build java docs when android docs are disabled
work around ClassLoader limitation
fix doc building