<p dir="auto"><strong>Glide Version</strong>: com.github.bumptech.glide:glide:3.7.0</p>

<p dir="auto"><strong>Integration libraries</strong>: com.github.bumptech.glide:okhttp3-integration:1.4.0@aar</p>

<p dir="auto"><strong>Device/Android Version</strong>: All devices</p>

<p dir="auto"><strong>Issue details / Repro steps / Use case background</strong>: We have a RecyclerView and each item contains ImageView<br>
In Recycler view adapter's onBind() method, We have Glide request for that image loading.</p>
<h2 dir="auto">Scenario (Duplicate Image Request)</h2>
<ol dir="auto">
<li>Activity loads</li>
<li>Image request is gone and under process</li>
<li>We scroll fast and comes back to same position(Note that image is still not loaded), the same image request is gone again.</li>
<li>Once image is cached, the view will have the image from cache.</li>
</ol>

<p dir="auto"><strong>Glide load line / <code class="notranslate">GlideModule</code> (if any) / list Adapter code (if any)</strong>:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Glide.with(context).load(url)
            .diskCacheStrategy(DiskCacheStrategy.SOURCE)
            .into(viewHolder.imageView);"><pre class="notranslate"><span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-s1">context</span>).<span class="pl-en">load</span>(<span class="pl-s1">url</span>)
            .<span class="pl-en">diskCacheStrategy</span>(<span class="pl-smi">DiskCacheStrategy</span>.<span class="pl-c1">SOURCE</span>)
            .<span class="pl-en">into</span>(<span class="pl-s1">viewHolder</span>.<span class="pl-s1">imageView</span>);</pre></div>

<p dir="auto"><strong>Layout XML</strong>:</p>
<div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;!-- Item --&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;FrameLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
    xmlns:tools=&quot;http://schemas.android.com/tools&quot;
    android:id=&quot;@+id/item_container&quot;
    android:layout_width=&quot;match_parent&quot;
    android:layout_height=&quot;wrap_content&quot;
    android:clickable=&quot;true&quot;
    android:focusable=&quot;true&quot;
    android:foreground=&quot;?selectableItemBackgroundBorderless&quot;
    tools:ignore=&quot;MissingPrefix&quot;&gt;

    &lt;ImageView
        android:id=&quot;@+id/home_item_image&quot;
        android:layout_width=&quot;match_parent&quot;
        android:layout_height=&quot;wrap_content&quot;
        android:adjustViewBounds=&quot;true&quot;
        android:clickable=&quot;false&quot;
        android:contentDescription=&quot;@string/content.description.category_image&quot;
        android:scaleType=&quot;fitXY&quot; /&gt;

    &lt;TextView
        android:id=&quot;@+id/home_item_name&quot;
        style=&quot;@style/text_style_heading4_white&quot;
        android:layout_width=&quot;match_parent&quot;
        android:layout_height=&quot;match_parent&quot;
        android:layout_gravity=&quot;center&quot;
        android:background=&quot;@drawable/gradient&quot;
        android:gravity=&quot;center&quot;
        android:padding=&quot;@dimen/spacing.normal&quot;
        android:text=&quot;@string/hint.category.name&quot; /&gt;

&lt;/FrameLayout&gt;


&lt;!-- Fragment --&gt;
&lt;FrameLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
    xmlns:tools=&quot;http://schemas.android.com/tools&quot;
    android:layout_width=&quot;match_parent&quot;
    android:layout_height=&quot;match_parent&quot;&gt;

    &lt;android.support.v4.widget.SwipeRefreshLayout
        android:id=&quot;@+id/refresh_view&quot;
        android:layout_width=&quot;match_parent&quot;
        android:layout_height=&quot;match_parent&quot;&gt;

        &lt;android.support.v7.widget.RecyclerView
            android:id=&quot;@+id/vertical_recycler_view&quot;
            android:layout_width=&quot;match_parent&quot;
            android:layout_height=&quot;match_parent&quot; /&gt;

    &lt;/android.support.v4.widget.SwipeRefreshLayout&gt;

    &lt;me.zhanghai.android.materialprogressbar.MaterialProgressBar
        android:id=&quot;@+id/progressbar&quot;
        style=&quot;@style/Widget.MaterialProgressBar.ProgressBar.Large&quot;
        android:layout_width=&quot;wrap_content&quot;
        android:layout_height=&quot;wrap_content&quot;
        android:layout_gravity=&quot;center&quot;
        android:indeterminate=&quot;true&quot; /&gt;

    &lt;FrameLayout
        android:layout_width=&quot;match_parent&quot;
        android:layout_height=&quot;match_parent&quot;
        android:id=&quot;@+id/network_error&quot;
        android:visibility=&quot;gone&quot;/&gt;

&lt;/FrameLayout&gt;
"><pre class="notranslate"><span class="pl-c"><span class="pl-c">&lt;!--</span> Item <span class="pl-c">--&gt;</span></span>
&lt;?<span class="pl-ent">xml</span><span class="pl-e"> version</span>=<span class="pl-s"><span class="pl-pds">"</span>1.0<span class="pl-pds">"</span></span><span class="pl-e"> encoding</span>=<span class="pl-s"><span class="pl-pds">"</span>utf-8<span class="pl-pds">"</span></span>?&gt;
&lt;<span class="pl-ent">FrameLayout</span> <span class="pl-e">xmlns</span><span class="pl-e">:</span><span class="pl-e">android</span>=<span class="pl-s"><span class="pl-pds">"</span>http://schemas.android.com/apk/res/android<span class="pl-pds">"</span></span>
    <span class="pl-e">xmlns</span><span class="pl-e">:</span><span class="pl-e">tools</span>=<span class="pl-s"><span class="pl-pds">"</span>http://schemas.android.com/tools<span class="pl-pds">"</span></span>
    <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>@+id/item_container<span class="pl-pds">"</span></span>
    <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_width</span>=<span class="pl-s"><span class="pl-pds">"</span>match_parent<span class="pl-pds">"</span></span>
    <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_height</span>=<span class="pl-s"><span class="pl-pds">"</span>wrap_content<span class="pl-pds">"</span></span>
    <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">clickable</span>=<span class="pl-s"><span class="pl-pds">"</span>true<span class="pl-pds">"</span></span>
    <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">focusable</span>=<span class="pl-s"><span class="pl-pds">"</span>true<span class="pl-pds">"</span></span>
    <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">foreground</span>=<span class="pl-s"><span class="pl-pds">"</span>?selectableItemBackgroundBorderless<span class="pl-pds">"</span></span>
    <span class="pl-e">tools</span><span class="pl-e">:</span><span class="pl-e">ignore</span>=<span class="pl-s"><span class="pl-pds">"</span>MissingPrefix<span class="pl-pds">"</span></span>&gt;

    &lt;<span class="pl-ent">ImageView</span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>@+id/home_item_image<span class="pl-pds">"</span></span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_width</span>=<span class="pl-s"><span class="pl-pds">"</span>match_parent<span class="pl-pds">"</span></span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_height</span>=<span class="pl-s"><span class="pl-pds">"</span>wrap_content<span class="pl-pds">"</span></span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">adjustViewBounds</span>=<span class="pl-s"><span class="pl-pds">"</span>true<span class="pl-pds">"</span></span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">clickable</span>=<span class="pl-s"><span class="pl-pds">"</span>false<span class="pl-pds">"</span></span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">contentDescription</span>=<span class="pl-s"><span class="pl-pds">"</span>@string/content.description.category_image<span class="pl-pds">"</span></span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">scaleType</span>=<span class="pl-s"><span class="pl-pds">"</span>fitXY<span class="pl-pds">"</span></span> /&gt;

    &lt;<span class="pl-ent">TextView</span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>@+id/home_item_name<span class="pl-pds">"</span></span>
        <span class="pl-e">style</span>=<span class="pl-s"><span class="pl-pds">"</span>@style/text_style_heading4_white<span class="pl-pds">"</span></span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_width</span>=<span class="pl-s"><span class="pl-pds">"</span>match_parent<span class="pl-pds">"</span></span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_height</span>=<span class="pl-s"><span class="pl-pds">"</span>match_parent<span class="pl-pds">"</span></span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_gravity</span>=<span class="pl-s"><span class="pl-pds">"</span>center<span class="pl-pds">"</span></span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">background</span>=<span class="pl-s"><span class="pl-pds">"</span>@drawable/gradient<span class="pl-pds">"</span></span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">gravity</span>=<span class="pl-s"><span class="pl-pds">"</span>center<span class="pl-pds">"</span></span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">padding</span>=<span class="pl-s"><span class="pl-pds">"</span>@dimen/spacing.normal<span class="pl-pds">"</span></span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">text</span>=<span class="pl-s"><span class="pl-pds">"</span>@string/hint.category.name<span class="pl-pds">"</span></span> /&gt;

&lt;/<span class="pl-ent">FrameLayout</span>&gt;


<span class="pl-c"><span class="pl-c">&lt;!--</span> Fragment <span class="pl-c">--&gt;</span></span>
&lt;<span class="pl-ent">FrameLayout</span> <span class="pl-e">xmlns</span><span class="pl-e">:</span><span class="pl-e">android</span>=<span class="pl-s"><span class="pl-pds">"</span>http://schemas.android.com/apk/res/android<span class="pl-pds">"</span></span>
    <span class="pl-e">xmlns</span><span class="pl-e">:</span><span class="pl-e">tools</span>=<span class="pl-s"><span class="pl-pds">"</span>http://schemas.android.com/tools<span class="pl-pds">"</span></span>
    <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_width</span>=<span class="pl-s"><span class="pl-pds">"</span>match_parent<span class="pl-pds">"</span></span>
    <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_height</span>=<span class="pl-s"><span class="pl-pds">"</span>match_parent<span class="pl-pds">"</span></span>&gt;

    &lt;<span class="pl-ent">android</span>.support.v4.widget.SwipeRefreshLayout
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>@+id/refresh_view<span class="pl-pds">"</span></span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_width</span>=<span class="pl-s"><span class="pl-pds">"</span>match_parent<span class="pl-pds">"</span></span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_height</span>=<span class="pl-s"><span class="pl-pds">"</span>match_parent<span class="pl-pds">"</span></span>&gt;

        &lt;<span class="pl-ent">android</span>.support.v7.widget.RecyclerView
            <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>@+id/vertical_recycler_view<span class="pl-pds">"</span></span>
            <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_width</span>=<span class="pl-s"><span class="pl-pds">"</span>match_parent<span class="pl-pds">"</span></span>
            <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_height</span>=<span class="pl-s"><span class="pl-pds">"</span>match_parent<span class="pl-pds">"</span></span> /&gt;

    &lt;/<span class="pl-ent">android</span>.support.v4.widget.SwipeRefreshLayout&gt;

    &lt;<span class="pl-ent">me</span>.zhanghai.android.materialprogressbar.MaterialProgressBar
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>@+id/progressbar<span class="pl-pds">"</span></span>
        <span class="pl-e">style</span>=<span class="pl-s"><span class="pl-pds">"</span>@style/Widget.MaterialProgressBar.ProgressBar.Large<span class="pl-pds">"</span></span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_width</span>=<span class="pl-s"><span class="pl-pds">"</span>wrap_content<span class="pl-pds">"</span></span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_height</span>=<span class="pl-s"><span class="pl-pds">"</span>wrap_content<span class="pl-pds">"</span></span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_gravity</span>=<span class="pl-s"><span class="pl-pds">"</span>center<span class="pl-pds">"</span></span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">indeterminate</span>=<span class="pl-s"><span class="pl-pds">"</span>true<span class="pl-pds">"</span></span> /&gt;

    &lt;<span class="pl-ent">FrameLayout</span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_width</span>=<span class="pl-s"><span class="pl-pds">"</span>match_parent<span class="pl-pds">"</span></span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_height</span>=<span class="pl-s"><span class="pl-pds">"</span>match_parent<span class="pl-pds">"</span></span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>@+id/network_error<span class="pl-pds">"</span></span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">visibility</span>=<span class="pl-s"><span class="pl-pds">"</span>gone<span class="pl-pds">"</span></span>/&gt;

&lt;/<span class="pl-ent">FrameLayout</span>&gt;
</pre></div>

<p dir="auto"><strong>Stack trace / LogCat</strong>: Checked with a third party network monitoring tool, Headspin</p>
<div class="highlight highlight-source-ruby notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="paste stack trace and/or log here"><pre class="notranslate"><span class="pl-en">paste</span> <span class="pl-en">stack</span> <span class="pl-en">trace</span> <span class="pl-k">and</span>/<span class="pl-en">or</span> <span class="pl-en">log</span> <span class="pl-en">here</span></pre></div>
<p dir="auto"><strong>Glide Version</strong>:4.4.0</p>
<p dir="auto"><strong>Integration libraries</strong>:RxJava/RxAndroid/RxKotlin,Retrofit,okhttp3-3.8.0,gson,jsoup.</p>
<p dir="auto"><strong>Device/Android Version</strong>:Huawei 6X/Android 7.0</p>
<p dir="auto"><strong>Issue details / Repro steps / Use case background</strong>:</p>
<h5 dir="auto">Issue details:</h5>
<p dir="auto">I init a android project with kotlin.when I add Glide dependenies,it crash at <code class="notranslate">setSupportActionBar(toolbar)</code> in <code class="notranslate">MainActivity</code>.</p>
<h5 dir="auto">Repro steps:</h5>
<ol dir="auto">
<li>without Glide denpendeies,run app,works good.<br>
2.add Glide dependenies,run app,crash.</li>
</ol>
<p dir="auto"><strong>Glide load line / <code class="notranslate">GlideModule</code> (if any) / list Adapter code (if any)</strong>:</p>
<p dir="auto">I'd even not use any code with Glide.</p>
<p dir="auto">Something maybe helpful:</p>
<p dir="auto">gradle-wrapper.properties:<code class="notranslate">distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip</code></p>
<p dir="auto">root build.gradle:</p>
<div class="highlight highlight-source-groovy notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.1'
        classpath &quot;org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version&quot;

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }"><pre class="notranslate">    dependencies {
        classpath <span class="pl-s"><span class="pl-pds">'</span>com.android.tools.build:gradle:3.0.1<span class="pl-pds">'</span></span>
        classpath <span class="pl-s"><span class="pl-pds">"</span>org.jetbrains.kotlin:kotlin-gradle-plugin:<span class="pl-smi">$k<span class="pl-smi">otlin_version</span></span><span class="pl-pds">"</span></span>

        <span class="pl-c"><span class="pl-c">//</span> NOTE: Do not place your application dependencies here; they belong</span>
        <span class="pl-c"><span class="pl-c">//</span> in the individual module build.gradle files</span>
    }</pre></div>
<p dir="auto">app module build.gradle:</p>
<div class="highlight highlight-source-groovy notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="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 &quot;com.android.support:appcompat-v7:$android_support_version&quot;
    implementation &quot;com.android.support:cardview-v7:$android_support_version&quot;
    implementation &quot;com.android.support:design:$android_support_version&quot;
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    implementation &quot;org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version&quot;
    implementation &quot;org.jetbrains.anko:anko-commons:$anko_version&quot;
    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'
}"><pre class="notranslate">dependencies {
    androidTestImplementation <span class="pl-s"><span class="pl-pds">'</span>com.android.support.test:runner:1.0.1<span class="pl-pds">'</span></span>
    androidTestImplementation <span class="pl-s"><span class="pl-pds">'</span>com.android.support.test.espresso:espresso-core:3.0.1<span class="pl-pds">'</span></span>
    testImplementation <span class="pl-s"><span class="pl-pds">'</span>junit:junit:4.12<span class="pl-pds">'</span></span>
    implementation fileTree(<span class="pl-c1">include</span>: [<span class="pl-s"><span class="pl-pds">'</span>*.jar<span class="pl-pds">'</span></span>], <span class="pl-c1">dir</span>: <span class="pl-s"><span class="pl-pds">'</span>libs<span class="pl-pds">'</span></span>)
    implementation <span class="pl-s"><span class="pl-pds">"</span>com.android.support:appcompat-v7:<span class="pl-smi">$a<span class="pl-smi">ndroid_support_version</span></span><span class="pl-pds">"</span></span>
    implementation <span class="pl-s"><span class="pl-pds">"</span>com.android.support:cardview-v7:<span class="pl-smi">$a<span class="pl-smi">ndroid_support_version</span></span><span class="pl-pds">"</span></span>
    implementation <span class="pl-s"><span class="pl-pds">"</span>com.android.support:design:<span class="pl-smi">$a<span class="pl-smi">ndroid_support_version</span></span><span class="pl-pds">"</span></span>
    implementation <span class="pl-s"><span class="pl-pds">'</span>com.android.support.constraint:constraint-layout:1.0.2<span class="pl-pds">'</span></span>
    implementation <span class="pl-s"><span class="pl-pds">"</span>org.jetbrains.kotlin:kotlin-stdlib-jre7:<span class="pl-smi">$k<span class="pl-smi">otlin_version</span></span><span class="pl-pds">"</span></span>
    implementation <span class="pl-s"><span class="pl-pds">"</span>org.jetbrains.anko:anko-commons:<span class="pl-smi">$a<span class="pl-smi">nko_version</span></span><span class="pl-pds">"</span></span>
    implementation <span class="pl-s"><span class="pl-pds">'</span>io.reactivex.rxjava2:rxjava:2.1.3<span class="pl-pds">'</span></span>
    implementation <span class="pl-s"><span class="pl-pds">'</span>io.reactivex.rxjava2:rxkotlin:2.0.2<span class="pl-pds">'</span></span>
    implementation <span class="pl-s"><span class="pl-pds">'</span>io.reactivex.rxjava2:rxandroid:2.0.1<span class="pl-pds">'</span></span>
    implementation <span class="pl-s"><span class="pl-pds">'</span>com.google.code.gson:gson:2.8.2<span class="pl-pds">'</span></span>
    implementation project(<span class="pl-s"><span class="pl-pds">'</span>:net<span class="pl-pds">'</span></span>)
    implementation <span class="pl-s"><span class="pl-pds">'</span>com.squareup.okhttp3:logging-interceptor:3.8.0<span class="pl-pds">'</span></span>
    implementation <span class="pl-s"><span class="pl-pds">'</span>com.github.bumptech.glide:glide:4.4.0<span class="pl-pds">'</span></span><span class="pl-c"><span class="pl-c">//</span>if I add this dependency,It will crash.</span>
    annotationProcessor <span class="pl-s"><span class="pl-pds">'</span>com.github.bumptech.glide:compiler:4.4.0<span class="pl-pds">'</span></span><span class="pl-c"><span class="pl-c">//</span>if I add this dependency,It will crash.</span>
    implementation <span class="pl-s"><span class="pl-pds">'</span>org.jsoup:jsoup:1.10.2<span class="pl-pds">'</span></span>
}</pre></div>
<p dir="auto"><strong>Layout XML</strong>:</p>
<p dir="auto">I'd even not use any code with Glide.</p>
<p dir="auto"><strong>Stack trace / LogCat</strong>:</p>
<div class="highlight highlight-source-ruby notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="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.&lt;init&gt;(AppCompatTextView.java:81)
                                                                    at android.support.v7.widget.AppCompatTextView.&lt;init&gt;(AppCompatTextView.java:71)
                                                                    at android.support.v7.widget.AppCompatTextView.&lt;init&gt;(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.&lt;init&gt;(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)"><pre class="notranslate"><span class="pl-c1">01</span>-<span class="pl-c1">02</span> <span class="pl-c1">11</span><span class="pl-pds">:29</span><span class="pl-pds">:07</span><span class="pl-kos">.</span><span class="pl-c1">420</span> <span class="pl-c1">11584</span>-<span class="pl-c1">11584</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">fanhl</span><span class="pl-kos">.</span><span class="pl-en">kona</span> <span class="pl-c1">E</span>/<span class="pl-v">AndroidRuntime</span>: <span class="pl-c1">FATAL</span> <span class="pl-pds">EXCEPTION</span>: <span class="pl-en">main</span>
                                                                <span class="pl-en">Process</span>: <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">fanhl</span><span class="pl-kos">.</span><span class="pl-en">kona</span><span class="pl-kos">,</span> <span class="pl-pds">PID</span>: <span class="pl-c1">11584</span>
                                                                <span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">lang</span><span class="pl-kos">.</span><span class="pl-en">NoSuchMethodError</span>: <span class="pl-en">No</span> <span class="pl-en">static</span> <span class="pl-en">method</span> <span class="pl-en">getFont</span><span class="pl-kos">(</span><span class="pl-v">Landroid</span>/<span class="pl-en">content</span>/<span class="pl-v">Context</span><span class="pl-kos"></span><span class="pl-kos">;</span><span class="pl-v">ILandroid</span>/<span class="pl-en">util</span>/<span class="pl-v">TypedValue</span><span class="pl-kos">;</span><span class="pl-v">ILandroid</span>/<span class="pl-en">widget</span>/<span class="pl-v">TextView</span><span class="pl-kos">;</span><span class="pl-kos">)</span><span class="pl-v">Landroid</span>/<span class="pl-en">graphics</span>/<span class="pl-v">Typeface</span><span class="pl-kos">;</span> <span class="pl-en">in</span> <span class="pl-k">class</span> <span class="pl-v">Landroid</span>/<span class="pl-en">support</span>/<span class="pl-en">v4</span>/<span class="pl-en">content</span>/<span class="pl-en">res</span>/<span class="pl-v">ResourcesCompat</span><span class="pl-kos">;</span> <span class="pl-en">or</span> <span class="pl-en">its</span> <span class="pl-smi">super</span> <span class="pl-en">classes</span> <span class="pl-kos">(</span><span class="pl-en">declaration</span> <span class="pl-en">of</span> <span class="pl-s">'android.support.v4.content.res.ResourcesCompat'</span> <span class="pl-en">appears</span> <span class="pl-k">in</span> <span class="pl-sr">/data/app</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">fanhl</span><span class="pl-kos">.</span><span class="pl-en">kona</span>-<span class="pl-c1">2</span>/<span class="pl-en">split_lib_dependencies_apk</span><span class="pl-kos">.</span><span class="pl-en">apk</span><span class="pl-kos">)</span>
                                                                    <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">support</span><span class="pl-kos">.</span><span class="pl-en">v7</span><span class="pl-kos">.</span><span class="pl-en">widget</span><span class="pl-kos">.</span><span class="pl-en">TintTypedArray</span><span class="pl-kos">.</span><span class="pl-en">getFont</span><span class="pl-kos">(</span><span class="pl-v">TintTypedArray</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:119</span><span class="pl-kos">)</span>
                                                                    <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">support</span><span class="pl-kos">.</span><span class="pl-en">v7</span><span class="pl-kos">.</span><span class="pl-en">widget</span><span class="pl-kos">.</span><span class="pl-en">AppCompatTextHelper</span><span class="pl-kos">.</span><span class="pl-en">updateTypefaceAndStyle</span><span class="pl-kos">(</span><span class="pl-v">AppCompatTextHelper</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:208</span><span class="pl-kos">)</span>
                                                                    <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">support</span><span class="pl-kos">.</span><span class="pl-en">v7</span><span class="pl-kos">.</span><span class="pl-en">widget</span><span class="pl-kos">.</span><span class="pl-en">AppCompatTextHelper</span><span class="pl-kos">.</span><span class="pl-en">loadFromAttributes</span><span class="pl-kos">(</span><span class="pl-v">AppCompatTextHelper</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:110</span><span class="pl-kos">)</span>
                                                                    <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">support</span><span class="pl-kos">.</span><span class="pl-en">v7</span><span class="pl-kos">.</span><span class="pl-en">widget</span><span class="pl-kos">.</span><span class="pl-en">AppCompatTextHelperV17</span><span class="pl-kos">.</span><span class="pl-en">loadFromAttributes</span><span class="pl-kos">(</span><span class="pl-v">AppCompatTextHelperV17</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:38</span><span class="pl-kos">)</span>
                                                                    <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">support</span><span class="pl-kos">.</span><span class="pl-en">v7</span><span class="pl-kos">.</span><span class="pl-en">widget</span><span class="pl-kos">.</span><span class="pl-en">AppCompatTextView</span><span class="pl-kos">.</span>&lt;<span class="pl-en">init</span>&gt;<span class="pl-kos">(</span><span class="pl-v">AppCompatTextView</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:81</span><span class="pl-kos">)</span>
                                                                    <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">support</span><span class="pl-kos">.</span><span class="pl-en">v7</span><span class="pl-kos">.</span><span class="pl-en">widget</span><span class="pl-kos">.</span><span class="pl-en">AppCompatTextView</span><span class="pl-kos">.</span>&lt;<span class="pl-en">init</span>&gt;<span class="pl-kos">(</span><span class="pl-v">AppCompatTextView</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:71</span><span class="pl-kos">)</span>
                                                                    <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">support</span><span class="pl-kos">.</span><span class="pl-en">v7</span><span class="pl-kos">.</span><span class="pl-en">widget</span><span class="pl-kos">.</span><span class="pl-en">AppCompatTextView</span><span class="pl-kos">.</span>&lt;<span class="pl-en">init</span>&gt;<span class="pl-kos">(</span><span class="pl-v">AppCompatTextView</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:67</span><span class="pl-kos">)</span>
                                                                    <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">support</span><span class="pl-kos">.</span><span class="pl-en">v7</span><span class="pl-kos">.</span><span class="pl-en">widget</span><span class="pl-kos">.</span><span class="pl-en">Toolbar</span><span class="pl-kos">.</span><span class="pl-en">setTitle</span><span class="pl-kos">(</span><span class="pl-v">Toolbar</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:753</span><span class="pl-kos">)</span>
                                                                    <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">support</span><span class="pl-kos">.</span><span class="pl-en">v7</span><span class="pl-kos">.</span><span class="pl-en">widget</span><span class="pl-kos">.</span><span class="pl-en">ToolbarWidgetWrapper</span><span class="pl-kos">.</span><span class="pl-en">setTitleInt</span><span class="pl-kos">(</span><span class="pl-v">ToolbarWidgetWrapper</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:261</span><span class="pl-kos">)</span>
                                                                    <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">support</span><span class="pl-kos">.</span><span class="pl-en">v7</span><span class="pl-kos">.</span><span class="pl-en">widget</span><span class="pl-kos">.</span><span class="pl-en">ToolbarWidgetWrapper</span><span class="pl-kos">.</span><span class="pl-en">setWindowTitle</span><span class="pl-kos">(</span><span class="pl-v">ToolbarWidgetWrapper</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:243</span><span class="pl-kos">)</span>
                                                                    <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">support</span><span class="pl-kos">.</span><span class="pl-en">v7</span><span class="pl-kos">.</span><span class="pl-en">app</span><span class="pl-kos">.</span><span class="pl-en">ToolbarActionBar</span><span class="pl-kos">.</span>&lt;<span class="pl-en">init</span>&gt;<span class="pl-kos">(</span><span class="pl-v">ToolbarActionBar</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:74</span><span class="pl-kos">)</span>
                                                                    <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">support</span><span class="pl-kos">.</span><span class="pl-en">v7</span><span class="pl-kos">.</span><span class="pl-en">app</span><span class="pl-kos">.</span><span class="pl-en">AppCompatDelegateImplV9</span><span class="pl-kos">.</span><span class="pl-en">setSupportActionBar</span><span class="pl-kos">(</span><span class="pl-v">AppCompatDelegateImplV9</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:217</span><span class="pl-kos">)</span>
                                                                    <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">support</span><span class="pl-kos">.</span><span class="pl-en">v7</span><span class="pl-kos">.</span><span class="pl-en">app</span><span class="pl-kos">.</span><span class="pl-en">AppCompatActivity</span><span class="pl-kos">.</span><span class="pl-en">setSupportActionBar</span><span class="pl-kos">(</span><span class="pl-v">AppCompatActivity</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:129</span><span class="pl-kos">)</span>
                                                                    <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">fanhl</span><span class="pl-kos">.</span><span class="pl-en">kona</span><span class="pl-kos">.</span><span class="pl-en">ui</span><span class="pl-kos">.</span><span class="pl-en">main</span><span class="pl-kos">.</span><span class="pl-en">MainActivity</span><span class="pl-kos">.</span><span class="pl-en">onCreate</span><span class="pl-kos">(</span><span class="pl-v">MainActivity</span><span class="pl-kos">.</span><span class="pl-en">kt</span><span class="pl-pds">:20</span><span class="pl-kos">)</span>
                                                                    <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">app</span><span class="pl-kos">.</span><span class="pl-en">Activity</span><span class="pl-kos">.</span><span class="pl-en">performCreate</span><span class="pl-kos">(</span><span class="pl-v">Activity</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:6910</span><span class="pl-kos">)</span>
                                                                    <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">app</span><span class="pl-kos">.</span><span class="pl-en">Instrumentation</span><span class="pl-kos">.</span><span class="pl-en">callActivityOnCreate</span><span class="pl-kos">(</span><span class="pl-v">Instrumentation</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:1123</span><span class="pl-kos">)</span>
                                                                    <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">app</span><span class="pl-kos">.</span><span class="pl-en">ActivityThread</span><span class="pl-kos">.</span><span class="pl-en">performLaunchActivity</span><span class="pl-kos">(</span><span class="pl-v">ActivityThread</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:2746</span><span class="pl-kos">)</span>
                                                                    <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">app</span><span class="pl-kos">.</span><span class="pl-en">ActivityThread</span><span class="pl-kos">.</span><span class="pl-en">handleLaunchActivity</span><span class="pl-kos">(</span><span class="pl-v">ActivityThread</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:2864</span><span class="pl-kos">)</span>
                                                                    <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">app</span><span class="pl-kos">.</span><span class="pl-en">ActivityThread</span><span class="pl-kos">.</span>-<span class="pl-en">wrap12</span><span class="pl-kos">(</span><span class="pl-v">ActivityThread</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-kos">)</span>
                                                                    <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">app</span><span class="pl-kos">.</span><span class="pl-en">ActivityThread</span>$H<span class="pl-kos">.</span><span class="pl-en">handleMessage</span><span class="pl-kos">(</span><span class="pl-v">ActivityThread</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:1567</span><span class="pl-kos">)</span>
                                                                    <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">os</span><span class="pl-kos">.</span><span class="pl-en">Handler</span><span class="pl-kos">.</span><span class="pl-en">dispatchMessage</span><span class="pl-kos">(</span><span class="pl-v">Handler</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:105</span><span class="pl-kos">)</span>
                                                                    <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">os</span><span class="pl-kos">.</span><span class="pl-en">Looper</span><span class="pl-kos">.</span><span class="pl-en">loop</span><span class="pl-kos">(</span><span class="pl-v">Looper</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:156</span><span class="pl-kos">)</span>
                                                                    <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">app</span><span class="pl-kos">.</span><span class="pl-en">ActivityThread</span><span class="pl-kos">.</span><span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-v">ActivityThread</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:6523</span><span class="pl-kos">)</span>
                                                                    <span class="pl-en">at</span> <span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">lang</span><span class="pl-kos">.</span><span class="pl-en">reflect</span><span class="pl-kos">.</span><span class="pl-en">Method</span><span class="pl-kos">.</span><span class="pl-en">invoke</span><span class="pl-kos">(</span><span class="pl-en">Native</span> <span class="pl-v">Method</span><span class="pl-kos">)</span>
                                                                    <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">internal</span><span class="pl-kos">.</span><span class="pl-en">os</span><span class="pl-kos">.</span><span class="pl-en">ZygoteInit</span>$MethodAndArgsCaller<span class="pl-kos">.</span><span class="pl-en">run</span><span class="pl-kos">(</span><span class="pl-v">ZygoteInit</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:942</span><span class="pl-kos">)</span>
                                                                    <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">internal</span><span class="pl-kos">.</span><span class="pl-en">os</span><span class="pl-kos">.</span><span class="pl-en">ZygoteInit</span><span class="pl-kos">.</span><span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-v">ZygoteInit</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:832</span><span class="pl-kos">)</span></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7933189/34473966-eab4f77c-efb3-11e7-9c48-18875c3e3909.png"><img src="https://user-images.githubusercontent.com/7933189/34473966-eab4f77c-efb3-11e7-9c48-18875c3e3909.png" alt="image" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7933189/34473967-efe537c0-efb3-11e7-8a89-d8fe223a7225.png"><img src="https://user-images.githubusercontent.com/7933189/34473967-efe537c0-efb3-11e7-8a89-d8fe223a7225.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">And,here is my code:<br>
<a href="https://github.com/dyguests/Kona/blob/8052b6a4cd988e6346a50fa97ef6134ee3bc8033/app/src/main/java/com/fanhl/kona/ui/main/MainActivity.kt#L20-L20">setSupportActionBar in MainActivity</a><br>
<a href="https://github.com/dyguests/Kona/blob/5fb44937bb2b92bb05ee0c11f4844c749b7c0ed0/app/build.gradle#L40-L41">dependencies for Glide</a></p>