Thursday, July 17, 2014

Cordova run Android's generated AndroidManifest.xml has "NaN" as the versionCode - which causes the build to fail

I am working on Phonegap platforms. when i try to submit my Android in google play store. After changing the version to 1.0 and runing the command "cordova build android". I am getting error like this.

For Android: the error: "platforms/android/ant-build/AndroidManifest.xml:2: error: Error: Float types not allowed (at 'versionCode' with value 'NaN')."



cordova run android's generated AndroidManifest.xml has "NaN" as the versionCode - which causes the build to fail

Open the config.xml file second line look like this


<widget id="tld.domain.app" version="1.0"


so that issue is version give like this. Its problem solved me.


<widget id="tld.domain.app" version="1.0.0"

No comments:

Post a Comment