I have an electronic dictionary with Android 8.1. It worked well with the old version of Ankidroid. But now the latest version of Ankidroid prompts that its webview version is too old (magically, it stops prompting after I delete Edge), and the “Statistics” page cannot be displayed. I tried various methods to update its webview, but all failed. I wonder if there will be ankidroid with its own browser kernel in the future. I really need that.
By the way, thank you very much for developing Ankidroid, it has helped me learn a lot.
Hi,
You shouldn’t be having a problem here. For now, you can dismiss the prompt by clicking outside it
Could you then post debug info (Settings - About AnkiDroid - Copy Debug Info)
Thx for your help.
After I deleted edge, I was indeed able to dismiss the prompt (I can’t understand why edge would have an effect on this. Before this, clicking outside would cause a crash.). But still, some features don’t work, for example the “Statistics” page shows up blank. The same is true for the “Filtered Deck” page and the “Get Shared Decks” page. They all seem to be related to webview(or maybe others?).
Debug info:
AnkiDroid Version = 2.20.0 (d41d16a45c00b0bdbd3b13ac988143db5ef8ae90)
Backend Version = 0.1.48-anki24.11 (24.11 c47638ca36f99dd4f3b81ae82d964aec66e392e0)
Android Version = 8.1.0 (SDK 27)
ProductFlavor = full
Manufacturer = alps
Model = YDD011
Hardware = mt6739
Webview User Agent = Mozilla/5.0 (Linux; Android 8.1.0; YDD011 Build/O11019; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36
ACRA UUID = 048f5067-8194-452e-b24e-996e40645252
FSRS = 1.4.3 (Enabled: false)
Crash Reports Enabled = true
“Deck options” page has the problem too.
That’s definitely an old WebView.
Can you update Android System WebView: https://play.google.com/store/apps/details?id=com.google.android.webview&hl=en
If that fails, can you enable developer mode and see whether you can change the WebView to something more modern
Enabling developer options:
- Android: “Open Settings”
- “About device”
- “Software information”
- Tap “Build number” 7 times
This is the problem. Before creating this topic, I have tried various methods to upgrade the webview. The webview package name on Google Play is com.google.android.webview, and the webview in Android 8.1 is com.android.webview, so it seems that it cannot be upgraded through Google Play, that I can’t choose the new version of webview in the developer options. Although ankidroid will not prompt at this time, the debug information still shows the old version of webview. After that, I found the apk of com.android.webview, but I couldn’t install it successfully. So I hope that ankidroid can have a built-in webview.
The first picture is the webview on google play. Since gms is not available on my device, I found an apk on mirror website.
From supporting another user, you have the option to use a ‘dev’ WebView from Google.
Download https://play.google.com/store/apps/details?id=com.google.android.webview.dev&hl=en
And then set the system to use it via “WebView Implementation” in the Android developer settings