2016-10-11 31 views
2

Androidスタジオでglideを使用して、R.drawableに保存されているリソースからGIFアニメーションを処理しようとしていますが、「sysmbol 'Glide'を解決できません。Android Studio - Symbol 'Glide'を解決できません

私はbuilde.gradle

dependencies { 
    compile fileTree(include: ['*.jar'], dir: 'libs') 
    testCompile 'junit:junit:4.12' 
    compile 'com.android.support:appcompat-v7:24.2.0' 
    compile 'com.github.bumptech.glide:glide:3.7.0' 
} 

に私の依存関係にグライドを追加したと私はGIFに画像ビューを設定するには、次のコードを使用しています。

ImageView img=(ImageView)findViewById(R.id.catImg); 
int resourceId = R.drawable.gangrycat; 
Glide.with(this.context) 
    .load(resourceId) 
    .into(img); 
+0

hereを見つけることができます。 –

答えて

1

私は自分の問題を解決することができ、TBHはちょっとばかばかしいと感じました。

グライドライブラリをダウンロードしてインポートするのを忘れました。

全命令が、私はそれを修正するために管理してきたとTBH、私は少し愚かな感じ

関連する問題