2017-12-31 221 views
0

次のコードを使用しますが、()メソッドに解決できないということです。そのために私は何ができますか?Glideの使用中に解決できない

@Override 
public void onBindViewHolder(ViewHolder holder, int position) { 

    holder.description.setText(info.get(position).getDescription()); 
    Glide.with(context).load(info.get(position).getImage_link().into(holder.imageView)); 
} 

そして、これが私のGradleファイルの依存関係である:

依存関係{

compile 'com.android.support:design:+' 
compile 'com.github.karanchuri:PermissionManager:0.1.0' 
compile 'com.android.volley:volley:1.0.0' 
compile 'com.squareup.okhttp3:okhttp:3.2.0' 

compile 'com.android.support:cardview-v7:26.0.2' 
compile 'com.android.support:recyclerview-v7:26.0.2' 
compile 'com.github.bumptech.glide:glide:3.7.0' 
compile 'com.github.bumptech.glide:glide:4.0.0-RC0' 
compile 'com.android.support:support-v4:26.3.1' 
annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0-RC0' 
+0

は、なぜあなたはグライドの複数のバージョンがありますか?私はあなただけが最新のものを含める必要があると思う他の削除.. –

+0

この状態の問題はありますか?私はここにどんな依存関係を持つべきですか?何らかの依存関係が私に()メソッドに使用される可能性があるので、私はそれらをすべて使用しましたが、それらのすべてが失敗します。 –

答えて

0

あなたは夫婦の問題を持っている:

  1. あなたはグライド上に複数の依存関係を持っています。 1つだけ残して残りを取り除く。最新のhereを見つけることができます。

  2. あなたの問題は、get_ImageLink()の後にかっこが欠けているという単純なケースです。これにそれを変更する作業をする必要があります:

Glide.with(context).load(info.get(position).getImage_link()).into(holder.imageView));

関連する問題