Cannot import AnkiDroid .apkg deck in Anki

I made a deck in AnkiDroid 2.22.3, exported it to .apkg, imported it in Anki 2.1.15 (Linux), and got an import failure error:

Traceback (most recent call last):
  File "/usr/share/anki/aqt/importing.py", line 339, in importFile
    importer.run()
  File "/usr/share/anki/anki/importing/apkg.py", line 32, in run
    for k, v in list(json.loads(z.read("media").decode("utf8")).items()):
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb5 in position 1: invalid start byte
1 Like

Importing a recent .apkg version (AnkiDroid) into an ancient Anki version (on your linux) is expected to fail. Updating, as the troubleshooting list sent by Keks says, will most likely solve your issue.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.