title: Android - Cordova version code issue
body: <p>This is quite a weird one.</p>
  
  <p>Basically, I decided to switch from using <a href="https://trigger.io/" rel="nofollow">trigger.io</a> to using cordova to build and compile my app (using ionic framework).</p>
  
  <p>Everything is fine if I build an unsigned and unaligned app, but for production I have to sign and align the apk in order to upload it on the play store.</p>
  
  <p>I have signed and aligned the apk properly, but when I tried to upload the apk, I got this error:</p>
  
  <blockquote>
    <p>Your APK version code needs to be greater than 1457108319</p>
  </blockquote>
  
  <p>Now, I read a couple of answers here on stack overflow saying that I just need to add this line in my project config.xml file:</p>
  
  <pre><code>&lt;widget id="com.***********" android-versionCode="1457108319" version="5.0.0"
  </code></pre>
  
  <p>but the problem is that if I had this line of code, then gradle fails and I get this error:</p>
  
  <blockquote>
    <p>Error: Error code 1 for command: cmd with args:
    /s,/c,"c:\src\app-v5\platforms\android\gradlew cdvBuildRelease -b
    c:\src\app-v5\platforms\android\build.gradle -Dorg.gradle.daemon=true
    -Pandroid.useDeprecatedNdk=true"</p>
  </blockquote>
  
  <p>Hovewer, if I change the versionCode to a 6 digit code instead of 10, I get no error, but again, I can't upload it to the store because the versionCode number is less than the app already released.</p>
  
  <p>How can I solve this? I really have no idea what to do.</p>
  
  <p>Thanks a lot</p>