Cant add APK to my Repository

Hello… I want to make a local app repository… Im follow all of the instruction to setup my Repo… but when im add my APK in repo folder then run the fdroid update -c it give me Error. The error is look like this:

fdroid update -c
CRITICAL: Unknown exception found!
Traceback (most recent call last):
  File "/usr/bin/fdroid", line 156, in <module>
  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 1038, in scan_apk
    if SdkToolsPopen(['aapt', 'version'], output=False):
  File "/usr/lib/python3/dist-packages/fdroidserver/", line 1994, in SdkToolsPopen
    config[cmd] = find_sdk_tools_cmd(commands[0])
  File "/usr/lib/python3/dist-packages/fdroidserver/", line 389, in find_sdk_tools_cmd
  File "/usr/lib/python3/dist-packages/fdroidserver/", line 397, in test_aapt_version
    output = subprocess.check_output([aapt, 'version'], universal_newlines=True)
  File "/usr/lib/python3.4/", line 603, in check_output
    with Popen(*popenargs, stdout=PIPE, **kwargs) as process:
  File "/usr/lib/python3.4/", line 848, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.4/", line 1446, in _execute_child
    raise child_exception_type(errno_num, err_msg)
OSError: [Errno 8] Exec format error

What’s your fdroidserver version? Run

fdroid --version

to check.

My fdroid version is 1.0.0

My Server Specification:

  • Linux Mint 17.2 (32-bit)
  • XAMPP as WebServer
  • Intel NUC (mini PC) wirh 4gb RAM

Do you have aapt in $PATH? What does aapt version print?

Im add aapt located in android-sdk-linux/build-tools/22.0.1/aapt to the PATH, Still getting the same error…

run aapt version give me this line

aapt version
Android Asset Packaging Tool, v0.2-1793126

I have try to install on 64 bit PC… Still cant add APK to my repo… got this error:

fdroid update -c
CRITICAL: Unknown exception found!
Traceback (most recent call last):
File “/usr/bin/fdroid”, line 146, in
File “/usr/bin/fdroid”, line 123, in main
File “/usr/lib/python2.7/dist-packages/fdroidserver/”, line 1209, in main
apks, cachechanged = scan_apks(apps, apkcache, repodirs[0], knownapks)
File “/usr/lib/python2.7/dist-packages/fdroidserver/”, line 571, in scan_apks
dt_obj = datetime(*manifest.date_time)
ValueError: month must be in 1…12

Owh… Its work… im upgrading the fdroid to version 1.0.0 and its running like a charm… Thanks guyss…