Fix import issues

This small PR fixes some build and compile issues.

Moreover, if we don't find `androidHome` we throw an `IllegalStateException`.