Skip to content

Commit 9fd2cf9

Browse files
Fix NoClassDefFoundError exceptions for TermuxActivity
This commit fixes the non-crashing exception `Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>: 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
1 parent 5a96075 commit 9fd2cf9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ android {
1010
implementation "androidx.annotation:annotation:1.1.0"
1111
implementation "androidx.viewpager:viewpager:1.0.0"
1212
implementation "androidx.drawerlayout:drawerlayout:1.1.1"
13+
implementation 'androidx.core:core:1.5.0-beta02'
1314
implementation project(":terminal-view")
1415
}
1516

0 commit comments

Comments
 (0)