fix wait_for_emulator
add gradle build to travis.yml