fixed #2105: Refactoring travis build script for android.