Anki-Android icon indicating copy to clipboard operation
Anki-Android copied to clipboard

Can't Sync: "Select Collection to keep" has no content

Open EmbarrassedRelease7 opened this issue 6 months ago • 14 comments

Checked for duplicates?

  • [x] This issue is not a duplicate

Does it also happen in the desktop version?

  • [x] This bug does not occur in the latest version of Anki Desktop

What are the steps to reproduce this bug?

Image

I uploaded changes from Anki desktop to AnkiWeb successfully. Now I am trying to sync AnkiWeb to AnkiDroid on my Samsung phone.

Problem: When I press sync in AnkiDroid, it says “select collection to keep,” but the area where the options should appear is completely blank. Normally I would get options to choose either:

  • keep AnkiDroid collection
  • keep AnkiWeb collection

but now there are no selectable options at all.

Things I already tried:

  • uninstalled/reinstalled AnkiDroid multiple times
  • restarted phone
  • logged out/back into AnkiWeb
  • chose not to keep app data during uninstall
  • cleared cache/data
  • still getting the same blank sync screen
  • AnkiDroid does not pull from AnkiWeb after reinstall
  • “one-way sync” - Nothing changed
  • retsoring from earlier backups when there was no issue
  • importing the desired deck from Anki desktop app (.apkg)

Has anyone seen this blank “select collection to keep” screen before, and how can I safely force AnkiDroid to download from AnkiWeb instead of uploading from the phone?

Expected behaviour

When I press sync in AnkiDroid, it says “select collection to keep,” but the area where the options should appear is completely blank. Normally I would get options to choose either:

  • keep AnkiDroid collection
  • keep AnkiWeb collection

but now there are no selectable options at all.

Debug info

AnkiDroid Version = 2.24.0 (ebcf8e0e34921628b9b8a496c66ffd4adbb3705f)
Backend Version = 0.1.64-anki25.09.2 (25.09.2 3890e12c9e48c028c3f12aa58cb64bd9f8895e30)
Android Version = 10 (SDK 29)
ProductFlavor = play
Device Info = samsung | samsung | crownqlteue | crownqlteue | SM-N960U1 | qcom
WebView Info = [com.google.android.webview | 772713803]: Mozilla/5.0 (Linux; Android 10; SM-N960U1 Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/147.0.7727.138 Mobile Safari/537.36
ACRA UUID = 2ddd8070-cd9b-427e-ac01-54f714dc70d4
FSRS = 5.1.0 (Enabled: true)
Crash Reports Enabled = true

(Optional) Anything else you want to share?

Board exam coming up. This is cutting into hours of daily prep. I submitted on Reddit/Anki as well. Would appreciate help.

Research

  • [x] I have checked the manual and the FAQ and could not find a solution to my issue
  • [x] (Optional) I have confirmed the issue is not resolved in the latest alpha release (instructions)

EmbarrassedRelease7 avatar May 15 '26 18:05 EmbarrassedRelease7

Board exam coming up. This is cutting into hours of daily prep.

You can download a parallel apk for now from https://github.com/ankidroid/Anki-Android/releases. Choose a version that worked before, maybe 2.23.3?

ZornHadNoChoice avatar May 15 '26 20:05 ZornHadNoChoice

Board exam coming up. This is cutting into hours of daily prep.

You can download a parallel apk for now from https://github.com/ankidroid/Anki-Android/releases. Choose a version that worked before, maybe 2.23.3?

I appreciate the input. I am using the desktop version until this is resolved. But, the AnkiDroid was a staple part of my system that I hate to have down for any amount of time.

EmbarrassedRelease7 avatar May 15 '26 20:05 EmbarrassedRelease7

Hi, sorry about the issue!

  1. In AnkiDroid, could you go to Help -> Get Help -> Send Troubleshooting report, and re-post your debug information here (in case you reinstalled)

  2. Please try AnkiDroid 2.23.3 Parallel.A: https://github.com/ankidroid/Anki-Android/releases/download/v2.23.3/AnkiDroid-2.23.3.parallel.A.apk (Zorn was saying we provide older versions of AnkiDroid in case of bugs). This installs alongside your regular AnkiDroid collection. Please let us know whether this works.

I don't know what is causing this immediately, I'll be able to take a look tomorrow. Feel free to come to our Discord in the meantime (if you use it)

david-allison avatar May 15 '26 21:05 david-allison

Hi, sorry about the issue!

  1. In AnkiDroid, could you go to Help -> Get Help -> Send Troubleshooting report, and re-post your debug information here (in case you reinstalled)
  2. Please try AnkiDroid 2.23.3 Parallel.A: https://github.com/ankidroid/Anki-Android/releases/download/v2.23.3/AnkiDroid-2.23.3.parallel.A.apk (Zorn was saying we provide older versions of AnkiDroid in case of bugs). This installs alongside your regular AnkiDroid collection. Please let us know whether this works.

I don't know what is causing this immediately, I'll be able to take a look tomorrow. Feel free to come to our Discord in the meantime (if you use it)

1.Troubleshoot report resent.

AnkiDroid Version = 2.24.0 (ebcf8e0e34921628b9b8a496c66ffd4adbb3705f)
Backend Version = 0.1.64-anki25.09.2 (25.09.2 3890e12c9e48c028c3f12aa58cb64bd9f8895e30)
Android Version = 10 (SDK 29)
ProductFlavor = play
Device Info = samsung | samsung | crownqlteue | crownqlteue | SM-N960U1 | qcom
WebView Info = [com.google.android.webview | 772713803]: Mozilla/5.0 (Linux; Android 10; SM-N960U1 Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/147.0.7727.138 Mobile Safari/537.36
ACRA UUID = 2ddd8070-cd9b-427e-ac01-54f714dc70d4
FSRS = 5.1.0 (Enabled: true)
Crash Reports Enabled = true

EmbarrassedRelease7 avatar May 15 '26 21:05 EmbarrassedRelease7

Received, thanks. https://ankidroid.org/acra/app/1/bug/404345/report/1e198fed-7415-4068-a190-dbeb348f11ee ; https://ankidroid.org/acra/app/1/bug/404345/report/b02e8483-4705-4036-9127-d261e1cc0476

david-allison avatar May 15 '26 21:05 david-allison

@Fandroid745

Could you apply this patch and confirm whether the dialog which appears looks correct:

Could you also check "Forget cards"

Index: AnkiDroid/src/main/res/layout/dialog_alert_dialog_title_with_help.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/AnkiDroid/src/main/res/layout/dialog_alert_dialog_title_with_help.xml b/AnkiDroid/src/main/res/layout/dialog_alert_dialog_title_with_help.xml
--- a/AnkiDroid/src/main/res/layout/dialog_alert_dialog_title_with_help.xml	(revision b8ec92668f613d1cd9ad496e0d0ec1c0d7aed716)
+++ b/AnkiDroid/src/main/res/layout/dialog_alert_dialog_title_with_help.xml	(date 1778882131145)
@@ -27,12 +27,11 @@
         android:layout_width="0dp"
         android:layout_height="wrap_content"
         android:textAppearance="?attr/textAppearanceHeadlineSmall"
+        android:textColor="?attr/colorOnSurface"
         android:layout_marginStart="12dp"
         app:layout_goneMarginStart="0dp"
         app:layout_constraintStart_toEndOf="@id/title_icon"
         app:layout_constraintEnd_toStartOf="@id/help_icon"
-        app:layout_constraintTop_toTopOf="parent"
-        app:layout_constraintBottom_toBottomOf="parent"
         tools:text="Reset Card Progress" />
 
     <ImageView
Index: AnkiDroid/src/main/java/com/ichi2/anki/DeckPicker.kt
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/AnkiDroid/src/main/java/com/ichi2/anki/DeckPicker.kt b/AnkiDroid/src/main/java/com/ichi2/anki/DeckPicker.kt
--- a/AnkiDroid/src/main/java/com/ichi2/anki/DeckPicker.kt	(revision b8ec92668f613d1cd9ad496e0d0ec1c0d7aed716)
+++ b/AnkiDroid/src/main/java/com/ichi2/anki/DeckPicker.kt	(date 1778881115897)
@@ -474,6 +474,7 @@
 
         // Then set theme and content view
         super.onCreate(savedInstanceState)
+        showSyncErrorDialog(SyncErrorDialog.Type.DIALOG_SYNC_CONFLICT_RESOLUTION)
 
         binding = ActivityHomescreenBinding.inflate(layoutInflater)

david-allison avatar May 15 '26 21:05 david-allison

Thank you brother.

I am a boomer and might takes some time to figure out how to implement this (in addition to the boards studying). Lol

I appreciate the quick turnaround and will try to give feedback ASAP.

EmbarrassedRelease7 avatar May 15 '26 22:05 EmbarrassedRelease7

The comment was meant for a developer. Don't worry about it!

ZornHadNoChoice avatar May 15 '26 22:05 ZornHadNoChoice

The comment was meant for a developer. Don't worry about it!

Oh! Haha

EmbarrassedRelease7 avatar May 15 '26 22:05 EmbarrassedRelease7

@EmbarrassedRelease7 Did you follow my instructions and is 2.23.3 Parallel A working for you?

Please try AnkiDroid 2.23.3 Parallel.A: https://github.com/ankidroid/Anki-Android/releases/download/v2.23.3/AnkiDroid-2.23.3.parallel.A.apk (Zorn was saying we provide older versions of AnkiDroid in case of bugs). This installs alongside your regular AnkiDroid collection. Please let us know whether this works.


You're a DOCTOR, that beats being a boomer 100 times out of 100 😄

david-allison avatar May 15 '26 22:05 david-allison

@EmbarrassedRelease7 Did you follow my instructions and is 2.23.3 Parallel A working for you?

Please try AnkiDroid 2.23.3 Parallel.A: https://github.com/ankidroid/Anki-Android/releases/download/v2.23.3/AnkiDroid-2.23.3.parallel.A.apk (Zorn was saying we provide older versions of AnkiDroid in case of bugs). This installs alongside your regular AnkiDroid collection. Please let us know whether this works.

You're a DOCTOR, that beats being a boomer 100 times out of 100 😄

Not sure. Ran into this issue yesterday too. There also seems to be an issue when I try to log in as well. (see bottom of the image)

Image

EmbarrassedRelease7 avatar May 15 '26 22:05 EmbarrassedRelease7

Ah! That's in the process of being fixed. You're on Android 10, right?


After starting normally, sync should work. If not:

  • Settings - Advanced - AnkiDroid Directory
  • Change AnkiDroid to AnkiDroidA

david-allison avatar May 16 '26 08:05 david-allison

@Fandroid745

Could you apply this patch and confirm whether the dialog which appears looks correct:

Could you also check "Forget cards"

I applied the patch you shared the dialog looks correct

Image Image

Fandroid745 avatar May 16 '26 08:05 Fandroid745

Ah! That's in the process of being fixed. You're on Android 10, right?

After starting normally, sync should work. If not:

  • Settings - Advanced - AnkiDroid Directory
  • Change AnkiDroid to AnkiDroidA

You're the F'n man! Changed the directory and everything popped up in like 5 seconds. Sincerely, thank you.

And yes, Android 10.

EmbarrassedRelease7 avatar May 16 '26 09:05 EmbarrassedRelease7