Android - Firebase - TaskSnapshot - Method should only be accessed within private scope?

后端 未结 3 1390
忘掉有多难
忘掉有多难 2020-12-07 20:43

Everything was working great... until I came back to work from a 3 month break and updated my Firebase from 9.8 to 10.0.1

Now all of my calls to TaskSnapshot

3条回答
  •  佛祖请我去吃肉
    2020-12-07 21:03

    The problem seems to be caused by an overzealous Lint check. Try something like this:

    @SuppressWarnings("VisibleForTests") Uri downloadUrl = taskSnapshot.getDownloadUrl();
    

    This trick worked for me. If the problem's related to this bug report, then it should be fixed in 2.4.

提交回复
热议问题