huggie
huggie

Reputation: 18237

Cordova config.xml xmlns:android namespace gets erased in every build

Earlier I asked this question.

Web Storage in Cordova app get carried over even if app is removed

The solution works for a HelloWorld sample project; however, on my existing project, everytime I do a cordova build my android xml name space (xmlns:android) is gone and I'll get an unbound prefix error. Any idea?

Upvotes: 0

Views: 658

Answers (1)

Mark Terrill
Mark Terrill

Reputation: 316

I had this exact issue, the easy resolution is running a cordova clean before running any ionic build etc again.

  1. Add your xmlns:cdv="http://cordova.apache.org/ns/1.0" to the widget tag in [project root]/config.xml
  2. Run cordova clean, then any ionic command, ie cordova clean; ionic cordova build android

You'll be able to see it maintains the tag you added in config.xml

Upvotes: 1

Related Questions