add one empty directory in your android folder and then place the accepted licenses key inside that direcotry this did the trick for me
– Mohan GopiDec 12 '16 at 14:07
Just checking the obvious - have you done what the message says and upped the gradle version? I've not had this message before, but it looks very like your gradle version is too old to read the build file.
– Keith Paul BarrowDec 12 '16 at 15:00
http://stackoverflow.com/questions/40392345/ionic-build-error-you-have-not-accepted-the-license-agreements-of-the-followin @AnkitMaheshwari
– Mohan GopiDec 13 '16 at 07:34