我正在使用谷歌云存储在安卓上存储图像。我在google developers console中创建了一个项目,并给出了该项目的所有id。
private static final String PROJECT_ID_PROPERTY = "xxxxxxxxxxxxxx"; //project ID
private static final String APPLICATION_NAME_PROPERTY = "refined"; //application name, can be any
private static final String ACCOUNT_ID_PROPERTY = "xxxxxxxxxxxxxxx-n5kqcd842faki0se7s82vpcf9l1rbvui@developer.gserviceaccount.com"; //user account email下载P12文件,并从设置p12 key的代码中访问。
当我在2天前尝试时,图片被正确上传,当我今天尝试相同的代码时,我可以在browser..But中看到它们,它给出了禁止的问题。
{"code":403,"errors": [{"domain":"global","message":"Forbidden","reason":"forbidden"}],"message":"Forbidden"}可能的原因是什么?
发布于 2015-09-01 14:52:52
我可以用权限解决issue...Issue问题...我为客户端ID赋予了存储桶的写权限,现在它就可以工作了。
感谢所有人
https://stackoverflow.com/questions/32307720
复制相似问题