为什么单词“storage”上有错误行,删除Android上的文件?

问题描述 投票:0回答:1

在此指导下,Delete Files on Android...为什么“存储”这个词有错误?

StorageReference storageRef = storage.getReference();

StorageReference desertRef = storageRef.child("Tuition Image");

desertRef.delete().addOnSuccessListener(new OnSuccessListener<Void>() {
    @Override
    public void onSuccess(Void aVoid) {
        // File deleted successfully
    }
}).addOnFailureListener(new OnFailureListener() {
    @Override
    public void onFailure(@NonNull Exception exception) {
        // Uh-oh, an error occurred!
    }
});
java android firebase firebase-storage
1个回答
2
投票

你有没有在顶部实现这个:

FirebaseStorage storage = FirebaseStorage.getInstance();
© www.soinside.com 2019 - 2024. All rights reserved.