question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Didn't find class "android.view.View$OnUnhandledKeyEventListener"

See original GitHub issue

Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$OnUnhandledKeyEventListenerWrapper>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/View$OnUnhandledKeyEventListener; 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at void androidx.core.view.ViewCompat.setOnApplyWindowInsetsListener(android.view.View, androidx.core.view.OnApplyWindowInsetsListener) (ViewCompat.java:2203) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at android.view.ViewGroup androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:637) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at void androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:518) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at void androidx.appcompat.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:466) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at void androidx.appcompat.app.AppCompatActivity.setContentView(int) (AppCompatActivity.java:140) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at androidx.databinding.ViewDataBinding androidx.databinding.DataBindingUtil.setContentView(android.app.Activity, int, androidx.databinding.DataBindingComponent) (DataBindingUtil.java:303) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at androidx.databinding.ViewDataBinding androidx.databinding.DataBindingUtil.setContentView(android.app.Activity, int) (DataBindingUtil.java:284) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at void com.google.samples.apps.sunflower.GardenActivity.onCreate(android.os.Bundle) (GardenActivity.kt:41) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6973) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1126) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2946) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:3064) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at void android.app.ActivityThread.-wrap14(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1659) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at void android.os.Looper.loop() (Looper.java:154) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6823) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:1557) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:1445) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.View$OnUnhandledKeyEventListener" on path: DexPathList[[zip file "/data/app/com.google.samples.apps.sunflower-1/base.apk"],nativeLibraryDirectories=[/data/app/com.google.samples.apps.sunflower-1/lib/arm, /system/lib, /vendor/lib]] 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at void androidx.core.view.ViewCompat.setOnApplyWindowInsetsListener(android.view.View, androidx.core.view.OnApplyWindowInsetsListener) (ViewCompat.java:2203) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at android.view.ViewGroup androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:637) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at void androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:518) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at void androidx.appcompat.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:466) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at void androidx.appcompat.app.AppCompatActivity.setContentView(int) (AppCompatActivity.java:140) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at androidx.databinding.ViewDataBinding androidx.databinding.DataBindingUtil.setContentView(android.app.Activity, int, androidx.databinding.DataBindingComponent) (DataBindingUtil.java:303) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at androidx.databinding.ViewDataBinding androidx.databinding.DataBindingUtil.setContentView(android.app.Activity, int) (DataBindingUtil.java:284) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at void com.google.samples.apps.sunflower.GardenActivity.onCreate(android.os.Bundle) (GardenActivity.kt:41) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6973) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1126) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2946) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:3064) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at void android.app.ActivityThread.-wrap14(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1659) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at void android.os.Looper.loop() (Looper.java:154) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6823) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:1557) 2019-01-01 14:55:15.987 29675-29675/com.google.samples.apps.sunflower I/art: at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:1445) 201

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:34
  • Comments:43 (5 by maintainers)

github_iconTop GitHub Comments

20reactions
zy666commented, Apr 29, 2019

Same for me… help me

19reactions
nathan-fiscaletticommented, May 30, 2019

Harmless

You mean intrusive, ugly, and log polluting?

Read more comments on GitHub >

github_iconTop Results From Across the Web

android.view.View$OnUnhandledKeyEventListener
View$OnUnhandledKeyEventListener is add in api28. If runtime device below 28, can't find the class, but run without fatal error.
Read more >
View.OnUnhandledKeyEventListener | Android Developers
Stay organized with collections Save and categorize content based on your preferences. Dismiss Got it. Kotlin |Java. interface OnUnhandledKeyEventListener ...
Read more >
Didn't find class "android.view.View ... - 博客园
Didn't find class "android.view.View$OnUnhandledKeyEventListener" on path: DexPathList. 运行项目的时候,报上面的错误,但是不影响app的运行。
Read more >
Java.lang.ClassNotFoundException: Didn't find ... - iTecNote
ClassNotFoundException : Didn't find class “android.view.View$OnUnhandledKeyEventListener ... I get some exceptions on my Android project.
Read more >
Android.View.View$Onunhandledkeyeventlistener - ADocLib
Java.lang.ClassNotFoundException : Didn't find class on path: DexPathList encountered after Android Studio upgrade and install 3.0 Programmer Sought the. example ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found