Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/199.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Android Firebase——存储谷歌个人资料图片_Java_Android_Firebase_Firebase Authentication - Fatal编程技术网

Java Android Firebase——存储谷歌个人资料图片

Java Android Firebase——存储谷歌个人资料图片,java,android,firebase,firebase-authentication,Java,Android,Firebase,Firebase Authentication,我正在为我的应用程序创建帐户设置页面。所以我给了一个ImageView来设置个人资料图片 我正在以以下方式加载图像: Glide.with(AccountSetupActivity.this) .load(mAuth.getCurrentUser().getPhotoUrl()) .into(mCircularProfile); //mCircularProfile is ImageView 它工作

我正在为我的应用程序创建帐户设置页面。所以我给了一个ImageView来设置个人资料图片

我正在以以下方式加载图像:

Glide.with(AccountSetupActivity.this)
                        .load(mAuth.getCurrentUser().getPhotoUrl())
                        .into(mCircularProfile); //mCircularProfile is ImageView
它工作完美无瑕。问题是当我尝试存储此文件时

mimageri=mAuth.getCurrentUser().getPhotoUrl()


非常感谢您的帮助

URL和Uri之间存在差异。错误是因为您试图将字符串URL存储为uri。请将URL转换为uri

mImageUri =  Uri.parse(mAuth.getCurrentUser().getPhotoUrl());

到底是什么问题?
mImageUri =  Uri.parse(mAuth.getCurrentUser().getPhotoUrl());