<p dir="auto">Press the delete key on the keyboard or the return key app crashes.<br>
What I used before was that v3.6.1 app did not crash.<br>
this log :<br>
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/view/KeyEventCompat;<br>
at android.support.v7.app.AppCompatActivity.dispatchKeyEvent(AppCompatActivity.java:526)<br>
at android.support.v7.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:59)<br>
at android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.dispatchKeyEvent(AppCompatDelegateImplBase.java:319)<br>
at com.android.internal.policy.DecorView.dispatchKeyEvent(DecorView.java:320)<br>
at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:4377)<br>
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4348)<br>
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3892)<br>
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3945)<br>
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3911)<br>
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4038)<br>
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3919)<br>
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4095)<br>
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3892)<br>
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3945)<br>
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3911)<br>
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3919)<br>
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3892)<br>
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6263)<br>
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6237)<br>
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6198)<br>
at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3687)<br>
at android.os.Handler.dispatchMessage(Handler.java:102)<br>
at android.os.Looper.loop(Looper.java:163)<br>
at android.app.ActivityThread.main(ActivityThread.java:6348)<br>
at java.lang.reflect.Method.invoke(Native Method)<br>
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880)<br>
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770)<br>
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.view.KeyEventCompat" on path: DexPathList[[zip file "/data/app/com.rm.tcart-2/base.apk"],nativeLibraryDirectories=[/data/app/com.rm.tcart-2/lib/arm, /data/app/com.rm.tcart-2/base.apk!/lib/armeabi, /system/lib, /vendor/lib]]<br>
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)<br>
at java.lang.ClassLoader.loadClass(ClassLoader.java:380)<br>
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)<br>
at android.support.v7.app.AppCompatActivity.dispatchKeyEvent(AppCompatActivity.java:526) <br>
at android.support.v7.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:59) <br>
at android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.dispatchKeyEvent(AppCompatDelegateImplBase.java:319) <br>
at com.android.internal.policy.DecorView.dispatchKeyEvent(DecorView.java:320) <br>
at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:4377) <br>
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4348) <br>
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3892) <br>
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3945) <br>
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3911) <br>
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4038) <br>
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3919) <br>
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4095) <br>
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3892) <br>
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3945) <br>
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3911) <br>
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3919) <br>
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3892) <br>
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6263) <br>
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6237) <br>
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6198) <br>
at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3687) <br>
at android.os.Handler.dispatchMessage(Handler.java:102) <br>
at android.os.Looper.loop(Looper.java:163) <br>
at android.app.ActivityThread.main(ActivityThread.java:6348) <br>
at java.lang.reflect.Method.invoke(Native Method) <br>
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880) <br>
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770) </p>
<p dir="auto"><strong>Glide Version</strong>:4.4.0</p>

<p dir="auto"><strong>Integration libraries</strong>:No</p>

<p dir="auto"><strong>Device/Android Version</strong>: Google Pixel</p>

<p dir="auto"><strong>Issue details / Repro steps / Use case background</strong>:<br>
The activity has a textview &amp; imageview &amp; imageview is using glide to load image, when the activity launches, it'll crash.</p>

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

<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="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' 
at android.support.v7.widget.TintTypedArray.getFont(TintTypedArray.java:119)"><pre class="notranslate"><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">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></pre></div>