2017-12-31 55 views
0

다음 코드를 사용하지만() 메소드로 해석 할 수 없다는 의미입니다. 그것을 위해 무엇을 할 수 있습니까?글라이드를 사용할 때() 메소드로 변환 할 수 없음

종속 {당신은 몇 가지 문제가

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. 당신은 글라이드 여러 종속성이

    @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을 파일 종속성입니다. 하나만 가지고 나머지는 제거하십시오. 최신 here을 찾을 수 있습니다.

  2. get_ImageLink() 이후에 괄호가없는 문제는 다소 간단합니다. 이에 변경 작업을해야합니다 :

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

관련 문제