Closed yhchens closed 6 years ago
You are correct. Sorry for that. I've added proguard in this version, this may be the reason. I'll prepare a fix tomorrow.
DfuBaseService: java.io.IOException: The ZIP file must contain an Application, a Soft Device and/or a Bootloader.
The error comes from here: https://github.com/NordicSemiconductor/Android-DFU-Library/blob/release/dfu/src/main/java/no/nordicsemi/android/dfu/internal/ArchiveInputStream.java#L245 For unknown reason the archive parser does not find the manifest file.
Fixed in 2.5.1. Proguard removed manifest classes, so the Manifest object failed to be parsed and that's why it was failing.
Commit: 29af8d68266302bd84e1a521b1fc3fb30f0a5297
I build it from source code try to figure what happen, but it is fine with debug build. I think google play version has something wrong.