jenly1314 / AppUpdater

🚀 AppUpdater一个专注于App更新,一键傻瓜式集成App版本升级的轻量开源库。(集成步骤超简单)
https://jenly1314.github.io/AppUpdater/
MIT License
891 stars 131 forks source link

设置MD5报错? #22

Closed t123581321 closed 3 years ago

t123581321 commented 3 years ago

我测试了下 .setApkMD5("595edf9db4e839bf0ac7c192e693ecac"),然后运行报错了,我看了下日志是 java.util.IllegalFormatConversionException: d != java.lang.String at java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:4403) at java.util.Formatter$FormatSpecifier.printInteger(Formatter.java:2885) at java.util.Formatter$FormatSpecifier.print(Formatter.java:2839) at java.util.Formatter.format(Formatter.java:2524) at java.util.Formatter.format(Formatter.java:2459) at java.lang.String.format(String.java:2870) at com.king.app.updater.service.DownloadService.startDownload(DownloadService.java:134)

我看了下好像是这个引起的吧 Log.d(Constants.TAG,String.format("UpdateConfig.apkMD5:%d",apkMD5)); %d的问题?

jenly1314 commented 3 years ago

嗯、已修正,你可以先使用上一个版本。

jenly1314 commented 3 years ago

请使用最新版本