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);
hereを見つけることができます。 –