Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid AnkiDroid JS API Version #23

Closed
sixtyfiveup opened this issue Jul 30, 2024 · 2 comments
Closed

Invalid AnkiDroid JS API Version #23

sixtyfiveup opened this issue Jul 30, 2024 · 2 comments

Comments

@sixtyfiveup
Copy link

How to reproduce: Using AnkiDroid on Linux Ubuntu added script to template as per instructions, then synchronised to propagate changes to AnkiWeb and then on Android, then tested on Android. Got the error "Invalid AnkiDroid JS API Version" on Android while working fine on Ankiweb.

Versions:

  • AnkiDroid 2.17.6 (anki 23.12.1) on Tablet Huawey Mediapad M5 lite powered by Android 8.0.0.
  • Also tested also on AnkiDroid 2.17.6 on smartphone Oppo A5 CPH1931 powered by Android 10, same error.

working fine

Tried

  • Re reading instructions expecting my error somewhere, seems not
  • Searched past issues for same or similar problem.
  • Followed instructions to search for wiki, did not find.
  • Searching for "Invalid Ankidroid JS API Version" on the web at no avail
  • Tried adjust script to 'version: "0.0.2"' in case my android is too old, expecting at least another type of error, but got same error.

Added information
Tried to export and join the template in case of side effect from other tuning I made. Did not find a way. Instead, hereafter are copy and paste of my front and back templates:

Front-template.txt
Back-template.txt

@gugutu
Copy link
Owner

gugutu commented Jul 30, 2024

Thanks for the feedback, I reproduced the problem, but I haven't figured out the reason yet. You can avoid this problem by upgrading AnkiDroid to a newer version.

@sixtyfiveup
Copy link
Author

Thank you for treating my enquiry so quickly.

Tried you suggestion :
Upgraded to "https://github.com/ankidroid/Anki-Android/releases/download/v2.18.4/AnkiDroid-2.18.4-arm64-v8a.apk"
Error "Invalid AnkiDroid JS API Version" disappeared.

Problem solved.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants