Firebase Cloud Firestore: referência de coleção inválida. As referências de coleção devem ter um número ímpar de segmentos

Eu tenho o seguinte código e estou recebendo um erro:

Invalid collection reference. Collection references must have an odd number of segments

E o código:

private void setAdapter() {
        FirebaseFirestore db = FirebaseFirestore.getInstance();
        db.collection("app/users/" + uid + "/notifications").get().addOnCompleteListener(task -> {
            if (task.isSuccessful()) {
                for (DocumentSnapshot document : task.getResult()) {
                    Log.d("FragmentNotifications", document.getId() + " => " + document.getData());
                }
            } else {
                Log.w("FragmentNotifications", "Error getting notifications.", task.getException());
            }
        });
    }

questionAnswers(3)

yourAnswerToTheQuestion