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)