One of the following attributes in config

I am getting this error while compiling Android App.

UserError: CordovaError: One of the following attributes are set but missing the other for the density type: size=undefined, size=undefined. Please ensure that all require attributes are defined. A possible reason is an incorrect specification in config.xml.

How are your images declared in your config.xml?

I had a problem similar to that when doing Cordova build for Android. It took me hours to narrow it down. The problem ended up being I had some attribute defined as “attribute=.8” – I had to change it to “attribute=0.8” for it to compile correctly. So check and make sure if you have any decimal attributes less than 1, preface them with a 0!