copy of working java build with gradle on androidstudio