在此指导下,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!
}
});
你有没有在顶部实现这个:
FirebaseStorage storage = FirebaseStorage.getInstance();