Cant add ZXing Barcode Scanner to my repo

I have succesfully installed my fdroid server, When i try to add ZXing Scanner,

  • I put the APK in my /repo

  • execute fdroid update -c

  • but the warning says that it has no metadata and copy to archive

  • When i try with newer version of ZXing (4.7.7), Its return me an error
    CRITICAL: Unknown exception found!
    Traceback (most recent call last):
    File “/usr/bin/fdroid”, line 156, in
    File “/usr/bin/fdroid”, line 132, in main
    File “/usr/lib/python3/dist-packages/fdroidserver/”, line 1874, in main
    apks, cachechanged = process_apks(apkcache, repodirs[0], knownapks, options.use_date_from_apk)
    File “/usr/lib/python3/dist-packages/fdroidserver/”, line 1422, in process_apks
    use_date_from_apk, ada, True)
    File “/usr/lib/python3/dist-packages/fdroidserver/”, line 1295, in process_apk
    apk = scan_apk(apkfile)
    File “/usr/lib/python3/dist-packages/fdroidserver/”, line 1045, in scan_apk
    apk[‘sig’] = getsig(apk_file)
    File “/usr/lib/python3/dist-packages/fdroidserver/”, line 410, in getsig
    with zipfile.ZipFile(apkpath, ‘r’) as apk:
    File “/usr/lib/python3.4/”, line 937, in init
    File “/usr/lib/python3.4/”, line 1034, in _RealGetContents
    File “/usr/lib/python3.4/”, line 415, in _decodeExtra
    tp, ln = unpack(’<HH’, extra[:4])
    struct.error: unpack requires a bytes object of length 4

  • My question is. How i can add that ZXing to my /repo not in /archive

Thank You… :slight_smile:

Seems like the APK is corrupt. Are you sure that it is valid by for example trying to install it on a device?

Yes… im sure its a valin APK… I try to install it on my phone and its installable…

  • Im getting that error when I try to add ZXing version 4.7.7 (by execute fdroid update -c)

  • For older version of ZXing its didnt return an Fatal Error but the APK is moved to /archive