2017-07-08 7 views
0

Picassoライブラリを使用してプロフィール画像を更新しています。私は、あなたは、これは

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

.into(personImagee); 

で問題を取得ピカソオブジェクトである

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} 

問題の下に誰かが私にあなたが、プレースホルダにIDを渡している

+0

.placeholder(R.drawable.profile_picture)に続い 変更をフォルダをdrawbleためにあなたのprofile_picture.pngを置く '.placeholder(R.id.profile_picture)' –

+0

自己説明エラーメッセージ...アンIDリソース値 'Drawable(色またはパス)ではありません。 ' –

答えて

1

を助けてください取得していますそこにドロアブルを渡さなければなりません。

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

コードを入力してください – basha

+0

@Basha – krishan

+0

あなたのリソースフォルダにprofile_pictureという名前のドロワブルを追加する必要があります。 – krishan

0

このライン.placeholder(R.id.profile_picture)ここでの問題

関連する問題