Fixed debug build, simplified sonatype for release only and updated gradle to 1.9 (gradle build tools 7.+
Fixed Lint about formatting strings
Fixed lint about toUpperCase, and backported Arrays.copyOfRange(byte[],int,int) for API < 9