create new android studio project

copy following files to new project

folder ‘libs’

folder ‘res’

folder ‘src’

edit build.gradle

remove activity_my.xml

remove my.xml

remove MyActivity.java

cd project root run gradle build