updates the gradle version to 1.0.0 and buildToolsVersion
fix compile errors for api level 10
modify stuff to support api level 10