Skip to content

Commit 670545e

Browse files
authored
Merge pull request #23 from Aquafina-water-bottle/readme_common_errors_solutions_rewrite
Rewrite Common Errors and Solutions section
2 parents 1ddaa2c + 9fb8815 commit 670545e

1 file changed

Lines changed: 58 additions & 15 deletions

File tree

README.md

Lines changed: 58 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ It reimplements the core APIs used by Yomichan to work with [Ankidroid](https://
1515
* [Additional Instructions: Show Card Button](#additional-instructions-show-card-button)
1616
* [Additional Instructions: Local Audio](#additional-instructions-local-audio)
1717
* [Common Errors and Solutions](#common-errors-and-solutions)
18-
* [Problem: Duplicate checks aren't working!](#problem-duplicate-checks-arent-working)
18+
* [First Steps](#first-steps)
19+
* [Problem: The Yomichan popup appears upon scrolling](#problem-the-yomichan-popup-appears-upon-scrolling)
20+
* [Problem: The add button is always greyed out](#problem-the-add-button-is-always-greyed-out)
21+
* [Problem: Duplicate checks aren't working](#problem-duplicate-checks-arent-working)
22+
* [Problem: Forvo audio won't load](#problem-forvo-audio-wont-load)
23+
* [Problem: On card add, I get `Incorrect flds argument`](#problem-on-card-add-i-get-incorrect-flds-argument)
24+
* [I still have a problem](#i-still-have-a-problem)
1925
* [Limitations](#limitations)
2026

2127
## Instructions
@@ -149,34 +155,71 @@ can be found within the above link.
149155
150156
151157
## Common Errors and Solutions
152-
If you're experiencing any of these problems:
153-
1. Forvo audio won't load
154-
2. App crashes
155-
3. Yomichan cannot connect
156158
157-
Check that:
158-
* Latest [app release](https://github.com/KamWithK/AnkiconnectAndroid/releases/latest) is installed
159-
* `http://localhost:8765/?term={term}&reading={reading}` is added as `Custom URL (JSON)` as a Yomichan audio source
160-
* If you import Yomichan's settings that the URLs default or as-specified and card/deck options right (when in doubt import the sanitised version in-case)
161-
* Battery saving/automatic optimisation is turned off for Ankidroid, Ankiconnect Android and optionally (but recommended) Kiwi browser
162-
* You allowed Ankiconnect Android to be running in the background (if this option is available on your device)
159+
### First Steps
160+
If you are having issues with anything, such as Yomichan being unable to connect to AnkiDroid, please ensure all these steps are followed before continuing:
163161
164-
If you've gone through the instructions and are still having trouble, feel free to create an issue here on GitHub or @/dm me on Discord (`@KamWithK#0634` on [The Moe Way](https://learnjapanese.moe/join/)).
162+
* Make sure the latest [app release](https://github.com/KamWithK/AnkiconnectAndroid/releases/latest) is installed.
163+
* If you imported the settings from the PC, try to use the sanitized version upon import, and manually re-add the handlebars after.
164+
* Double check that your Yomichan settings are correct. In particular, check that the `Configure Anki card format...` section, and the audio sources section is correct.
165+
* On rare occasions, settings exported from the computer and imported into your Android device may not work. Instead, try to reset Yomichan's settings and redo everything from scratch.
166+
* Battery saving/automatic optimisation is turned off for Ankidroid, Ankiconnect Android and optionally (but recommended) Kiwi browser.
167+
* You allowed Ankiconnect Android to be running in the background (if this option is available on your device).
165168
166-
### Problem: Duplicate checks aren't working!
169+
170+
### Problem: The Yomichan popup appears upon scrolling
171+
Try going through step 5 of the [instructions](#instructions).
172+
In particular, see the step that says
173+
**Ensure `Scanning Inputs` is optimized for mobile (prevents lookups on scrolling)**.
174+
175+
176+
### Problem: The add button is always greyed out
177+
This usually happens if `Enable Content Scanning` is switched off.
178+
To fix this, simply switch it on (under `Yomichan Settings` → `General` → `Enable content scanning`).
179+
180+
> **Note**:
181+
> If you have this switched off in the first place, it is also very likely that the popup is
182+
> showing up at unwanted times, i.e. while scrolling through a page.
183+
> To solve this, try going through step 5 of the [instructions](#instructions).
184+
185+
186+
### Problem: Duplicate checks aren't working
167187
To determine that duplicate checks aren't working:
168188
- Enable duplicate checks in the Yomichan settings (under `Anki` → `Check for card duplicates`),
169189
- Select a word and add a card
170-
- Tap outside of the popup, and re-select the word. Ideally, you should not be able to add a card here.
190+
- Tap outside of the popup, and re-select the word. Normally, you should not be able to add a card here.
171191
172192
If you are able to add a card, then duplicate checks are indeed not working.
173193
Check that your first field name does not include spaces,
174194
and your first field contents do not include quotes (`"`) or spaces.
175-
If it does, the only way to solve it is by using the Alpha version of AnkiDroid, and
195+
If either of those are true, the only way to solve it is by using the Alpha version of AnkiDroid, and
176196
[enable the new backend](https://github.com/ankidroid/Anki-Android/issues/13399)
177197
under the advanced settings.
178198
179199
200+
### Problem: Forvo audio won't load
201+
Please make sure that this exact URL under
202+
[Additional Instructions: Forvo Audio](#additional-instructions-forvo-audio) is used.
203+
This URL is different from the one on PC.
204+
205+
> **Note**:
206+
> There is always a chance that Forvo has changed the layout of their website,
207+
> which can lead to AnkiConnect Android improperly fetching the audio.
208+
> If you suspect this is the case, please create an issue on Github.
209+
210+
211+
### Problem: On card add, I get `Incorrect flds argument`
212+
This happens when you change the fields of a card. For example, if you added a field,
213+
renamed a field, or deleted a field, then this error may pop up.
214+
To fix it, navigate to `Yomichan Settings` → `Anki` → `Configure Anki card format...`,
215+
and update the model fields (i.e. by switching it to a different model and back).
216+
217+
218+
### I still have a problem
219+
If you've gone through the instructions and are still having trouble, feel free to create an issue here on GitHub or @/dm me on Discord (`@KamWithK#0634` on [TheMoeWay](https://learnjapanese.moe/join/)).
220+
221+
222+
180223
## Limitations
181224
Because Ankiconnect Android is a small project with a limited scope, not all API queries/cases are implemented/considered.
182225
Currently every known essential feature has been added into the app, however some niche edge cases have been ignored.

0 commit comments

Comments
 (0)