0
votes

I have been trying to add the android platform to ionic project but I keep getting the following error:

C:\Users\guizars\Desktop\ionicTest\weather>ionic platform add android

-Updated the hooks directory to have execute permissions

C:\Users\guizars\Desktop\config.xml has incorrect root node name (expected "widg et", was "config")

can someone help me please??

2

2 Answers

0
votes

I had a very similar issue to this, instead of the '(expected "widg et", was "config")' I was getting '(expected "widg et", was "platform")'.

To resolve this I opened my project config.xml and made sure that the last line was , placing any code I had added between the and the ending .

I hope this helps and makes sense. I'm very new to this myself!

0
votes

im stack to incorrect root node name may help somebody ...

(config.xml has incorrect root node name (expected "widget", was "hook")