小编S R*_*khu的帖子

firestore:PERMISSION_DENIED:缺少权限或权限不足

我收到了错误

gettingdocuments.com.google.firebase.firestore.FirebaseFirestoreException:PERMISSION_DENIED:权限丢失或不足.

对于else语句中的以下代码

db.collection("users")
        .get()
        .addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {
            @Override
            public void onComplete(@NonNull Task<QuerySnapshot> task) {
                 if (task.isSuccessful()) {
                     for (DocumentSnapshot document : task.getResult()) {
                         s(document.getId() + " => " + document.getData());
                     }
                 } else {
                     s("Error getting documents."+ task.getException());
                 }
             }
         });
Run Code Online (Sandbox Code Playgroud)

android firebase google-cloud-firestore

53
推荐指数
14
解决办法
5万
查看次数

标签 统计

android ×1

firebase ×1

google-cloud-firestore ×1