This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ZIP file must contain application, softdevice or bootloader

Hello, I'm building an Android application for DFU. I have a zip file and am downloading it and getting the content URI after download and using it in starter.setZip(contentUri). But I am getting this exception:

11-09 18:52:58.492 31020-31090/com.example.nikitha.run_2 E/DfuBaseService: An exception occurred while calculating file size
                                                                           java.io.IOException: The ZIP file must contain an Application, a Soft Device and/or a Bootloader.
                                                                               at no.nordicsemi.android.dfu.internal.ArchiveInputStream.<init>(ArchiveInputStream.java:245)
                                                                               at no.nordicsemi.android.dfu.DfuBaseService.openInputStream(DfuBaseService.java:1184)
                                                                               at no.nordicsemi.android.dfu.DfuBaseService.onHandleIntent(DfuBaseService.java:939)
                                                                               at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:68)
                                                                               at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                               at android.os.Looper.loop(Looper.java:154)
                                                                               at android.os.HandlerThread.run(HandlerThread.java:61)
Related