From 9fd2cf9834eb9faf56011669be3fa91c52fc038e Mon Sep 17 00:00:00 2001 From: agnostic-apollo Date: Sat, 27 Feb 2021 13:30:11 +0500 Subject: [PATCH] Fix NoClassDefFoundError exceptions for TermuxActivity This commit fixes the non-crashing exception `Rejecting re-init on previously-failed class java.lang.Class: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/View$OnUnhandledKeyEventListener;` on termux startup due to `setContentView()` call by `TermuxActivity.onCreate()`. The recommended solution seems to be to add `androidx.core:core` dependency, which has solved the issue. https://issuetracker.google.com/issues/117685087 --- app/build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/app/build.gradle b/app/build.gradle index 0cbce7936d..24b5882580 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,6 +10,7 @@ android { implementation "androidx.annotation:annotation:1.1.0" implementation "androidx.viewpager:viewpager:1.0.0" implementation "androidx.drawerlayout:drawerlayout:1.1.1" + implementation 'androidx.core:core:1.5.0-beta02' implementation project(":terminal-view") }