NordicSemiconductor / Android-nRF-Toolbox

The nRF Toolbox is a container app that stores your Nordic Semiconductor apps for Bluetooth Low Energy in one location.
https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Toolbox
BSD 3-Clause "New" or "Revised" License
1.07k stars 461 forks source link

DFU get DUF FILE ERROR on Google Play version #36

Closed yhchens closed 6 years ago

yhchens commented 6 years ago

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.

philips77 commented 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.

philips77 commented 6 years ago

DfuBaseService: java.io.IOException: The ZIP file must contain an Application, a Soft Device and/or a Bootloader.

philips77 commented 6 years ago

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.

philips77 commented 6 years ago

Fixed in 2.5.1. Proguard removed manifest classes, so the Manifest object failed to be parsed and that's why it was failing.

philips77 commented 6 years ago

Commit: 29af8d68266302bd84e1a521b1fc3fb30f0a5297