adapt to lates version of gradle and SDK