javiersantos / AppUpdater

A library that checks for your apps' updates on Google Play, GitHub, Amazon, F-Droid or your own server. API 9+ required.
Apache License 2.0
1.98k stars 410 forks source link

The JSON updater file is mal-formatted #189

Open MansoorJafari9 opened 4 years ago

MansoorJafari9 commented 4 years ago

Hi this is my json result {"latestVersion":"2","latestVersionCode":"13","url":"http://url.com/api/mobile/downloadapp","releaseNotes":["Test first","The second"]}

give me this error

E/AppUpdater: The JSON updater file is mal-formatted. AppUpdate can't check for updates.

mridah commented 3 years ago

@MansoorJafari9 Your JSON looks fine. I think that latestVersionCode should be an integer, not a string.

Also, it's better to use version numbers like 2.0.0 instead of just 2 (that's just a suggestion)