Issue 1:
Glide Version: com.github.bumptech.glide:glide:3.7.0

Integration libraries: com.github.bumptech.glide:okhttp3-integration:1.4.0@aar

Device/Android Version: All devices

Issue details / Repro steps / Use case background: We have a RecyclerView and each item contains ImageView

In Recycler view adapter's onBind() method, We have Glide request for that image loading.

Scenario (Duplicate Image Request)

Activity loads

Image request is gone and under process

We scroll fast and comes back to same position(Note that image is still not loaded), the same image request is gone again.

Once image is cached, the view will have the image from cache.

Glide load line / GlideModule (if any) / list Adapter code (if any):

Glide.with(context).load(url)
.diskCacheStrategy(DiskCacheStrategy.SOURCE)
.into(viewHolder.imageView);

Layout XML:

<!-- Item -->
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/item_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:focusable="true"
android:foreground="?selectableItemBackgroundBorderless"
tools:ignore="MissingPrefix">

<ImageView
android:id="@+id/home_item_image"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:clickable="false"
android:contentDescription="@string/content.description.category_image"
android:scaleType="fitXY" />

<TextView
android:id="@+id/home_item_name"
style="@style/text_style_heading4_white"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:background="@drawable/gradient"
android:gravity="center"
android:padding="@dimen/spacing.normal"
android:text="@string/hint.category.name" />

</FrameLayout>

<!-- Fragment -->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">

<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/refresh_view"
android:layout_width="match_parent"
android:layout_height="match_parent">

<android.support.v7.widget.RecyclerView
android:id="@+id/vertical_recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent" />

</android.support.v4.widget.SwipeRefreshLayout>

<me.zhanghai.android.materialprogressbar.MaterialProgressBar
android:id="@+id/progressbar"
style="@style/Widget.MaterialProgressBar.ProgressBar.Large"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:indeterminate="true" />

<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/network_error"
android:visibility="gone"/>

</FrameLayout>

Stack trace / LogCat: Checked with a third party network monitoring tool, Headspin

paste stack trace and/or log here

Issue 2:
Glide Version:4.4.0

Integration libraries:RxJava/RxAndroid/RxKotlin,Retrofit,okhttp3-3.8.0,gson,jsoup.

Device/Android Version:Huawei 6X/Android 7.0

Issue details / Repro steps / Use case background:

Issue details:

I init a android project with kotlin.when I add Glide dependenies,it crash at setSupportActionBar(toolbar) in MainActivity.

Repro steps:

without Glide denpendeies,run app,works good.

2.add Glide dependenies,run app,crash.

Glide load line / GlideModule (if any) / list Adapter code (if any):

I'd even not use any code with Glide.

Something maybe helpful:

gradle-wrapper.properties:distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip

root build.gradle:

dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}

app module build.gradle:

dependencies {
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
testImplementation 'junit:junit:4.12'
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "com.android.support:appcompat-v7:$android_support_version"
implementation "com.android.support:cardview-v7:$android_support_version"
implementation "com.android.support:design:$android_support_version"
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
implementation "org.jetbrains.anko:anko-commons:$anko_version"
implementation 'io.reactivex.rxjava2:rxjava:2.1.3'
implementation 'io.reactivex.rxjava2:rxkotlin:2.0.2'
implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
implementation 'com.google.code.gson:gson:2.8.2'
implementation project(':net')
implementation 'com.squareup.okhttp3:logging-interceptor:3.8.0'
implementation 'com.github.bumptech.glide:glide:4.4.0'//if I add this dependency,It will crash.
annotationProcessor 'com.github.bumptech.glide:compiler:4.4.0'//if I add this dependency,It will crash.
implementation 'org.jsoup:jsoup:1.10.2'
}

Layout XML:

I'd even not use any code with Glide.

Stack trace / LogCat:

01-02 11:29:07.420 11584-11584/com.fanhl.kona E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.fanhl.kona, PID: 11584
java.lang.NoSuchMethodError: No static method getFont(Landroid/content/Context;ILandroid/util/TypedValue;ILandroid/widget/TextView;)Landroid/graphics/Typeface; in class Landroid/support/v4/content/res/ResourcesCompat; or its super classes (declaration of 'android.support.v4.content.res.ResourcesCompat' appears in /data/app/com.fanhl.kona-2/split_lib_dependencies_apk.apk)
at android.support.v7.widget.TintTypedArray.getFont(TintTypedArray.java:119)
at android.support.v7.widget.AppCompatTextHelper.updateTypefaceAndStyle(AppCompatTextHelper.java:208)
at android.support.v7.widget.AppCompatTextHelper.loadFromAttributes(AppCompatTextHelper.java:110)
at android.support.v7.widget.AppCompatTextHelperV17.loadFromAttributes(AppCompatTextHelperV17.java:38)
at android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:81)
at android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:71)
at android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:67)
at android.support.v7.widget.Toolbar.setTitle(Toolbar.java:753)
at android.support.v7.widget.ToolbarWidgetWrapper.setTitleInt(ToolbarWidgetWrapper.java:261)
at android.support.v7.widget.ToolbarWidgetWrapper.setWindowTitle(ToolbarWidgetWrapper.java:243)
at android.support.v7.app.ToolbarActionBar.<init>(ToolbarActionBar.java:74)
at android.support.v7.app.AppCompatDelegateImplV9.setSupportActionBar(AppCompatDelegateImplV9.java:217)
at android.support.v7.app.AppCompatActivity.setSupportActionBar(AppCompatActivity.java:129)
at com.fanhl.kona.ui.main.MainActivity.onCreate(MainActivity.kt:20)
at android.app.Activity.performCreate(Activity.java:6910)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2746)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2864)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1567)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:156)
at android.app.ActivityThread.main(ActivityThread.java:6523)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)

And,here is my code:

setSupportActionBar in MainActivity

dependencies for Glide