update buildAll.sh and createKey.sh.
now it more generic.
fix bug at build.gradle.