Delete unnecessary code and fix gradlew permissions