使用毕加索库时获取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资源值不是可绘制的(颜色或路径)