Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Non-whitespace before first tag error

I can not build cordova application,and I receive the following error:

Error: Non-whitespace before first tag.
Line: 0
Column: 1
Char:

I am using cordova 6.2.0, and trying to build the android platform.

like image 358
Vahid Farahmandian Avatar asked Jun 19 '16 10:06

Vahid Farahmandian


1 Answers

To overcome this error, just remove the platform and add it again:

Cordova platforms remove android

after removing, just add it again:

Cordova platforms add android

Finally build the platform:

Cordova build android

Thanks to @ElDiabolo, if you are using Ionic, then you should prefix the aforementioned commands with ionic keyword. Read more about Ionic cli here: https://ionicframework.com/docs/cli/

like image 139
3 revs Avatar answered Nov 15 '22 19:11

3 revs