通话时
task.getResult().getDownloadUrl().toString();
我在getDownloadUrl()上遇到错误,不知道为什么? 在上面显示红线并且无法解析符号
if (task.isSuccessful()){
Toast.makeText(SetupActivity.this, "Profile Image is Stored Successfully to Firebase Storage... ", Toast.LENGTH_SHORT).show();
final String downloadUrl = task.getResult().getDownloadUrl.toString();
userRef.child("profileimage").setValue(downloadUrl)
}
答案 0 :(得分:3)
您在<div style="text-align: left">
<input type="radio" name="gender" id="unspecified" />
<label for="unspecified" class="gender">
Unspecified
</label>
<br>
<input type="radio" name="gender" id="Male" />
<label for="Male" class="gender">
Male
</label>
<br>
<input type="radio" name="gender" id="Female" />
<label for="Female" class="gender">
Female
</label>
</div>
调用中缺少括号(假设它是getDownloadUrl
返回的类型上存在的方法)。这应该起作用:
getResult()