Update Travis CI and Gradle scritps

1. Install Android SDK components by Travis CI.
2. Move 'dependencies' block outside of 'android' block.