fixed #2105: Refactoring travis build script.
Merge pull request #2559 from dumganhar/master

fixed #2105: Refactoring travis build script for android.