change build setting to gradle 2.1 and add permission to travis