Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/228.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
使用毕加索库时获取android.content.res.Resources$NotFoundException_Android_Picasso - Fatal编程技术网

使用毕加索库时获取android.content.res.Resources$NotFoundException

使用毕加索库时获取android.content.res.Resources$NotFoundException,android,picasso,Android,Picasso,我正在使用毕加索图书馆更新个人资料图片。我不明白这个问题 android.content.res.Resources$NotFoundException: Resource "com.adamas.selfiereporter:id/profile_picture" (7f100176) is not a Drawable (color or path): TypedValue{t=0x12/d=0x0 a=2 r=0x7f100176} 这是毕加索的作品 Picasso.with(getC

我正在使用毕加索图书馆更新个人资料图片。我不明白这个问题

android.content.res.Resources$NotFoundException: Resource "com.adamas.selfiereporter:id/profile_picture" (7f100176) is not a Drawable (color or path): TypedValue{t=0x12/d=0x0 a=2 r=0x7f100176}
这是毕加索的作品

 Picasso.with(getContext())
                                .load(profileImageUrl)
                                .placeholder(R.id.profile_picture)
                                .transform(new PicassoRoundedTransformation())
                                .fit()
                                .noFade()
                                .into(personImagee);
争论

 .into(personImagee);

请有人帮帮我

你在占位符中传递id,你必须在那里传递一个可绘制的

Picasso.with(getContext())
       .load(profileImageUrl)
       .placeholder(R.drawable.profile_picture)
       .transform(new PicassoRoundedTransformation())
       .fit()
       .noFade()
       .into(personImagee);

然后将您的个人资料\u picture.png放入drawble文件夹
将此行
.placeholder(R.id.profile\u picture)
更改为
.placeholder(R.drawable.profile\u picture)

立即检查@Bashayou必须在资源文件夹中添加一个名为profile\u picture的drawable。此处出现问题
。placeholder(R.id.profile\u picture)
自解释错误消息。。。ID资源值
不是可绘制的(颜色或路径)