Issue
As I had problems with
java.lang.NoSuchMethodError: No static method isCtrlPressed(Landroid/view/KeyEvent;)
and with
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/view/KeyEventCompat
I wanted to help u and show u how i managed to solve these problems.
I use:
compileSdkVersion 27
minSdkVersion 21
targetSdkVersion 27
versionName '2.6'
versionCode 8
buildToolsVersion '27.0.3'
I needed just to remove all old support dependencies from the gradle (for example: com.android.support:support-v4:25.1.0). And then add those two lines:
- implementation 'com.android.support:support-v4:27.1.0'
- implementation 'com.android.support:appcompat-v7:27.1.0'
Solution
As I had problems with
java.lang.NoSuchMethodError: No static method isCtrlPressed(Landroid/view/KeyEvent;)
and with
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/view/KeyEventCompat
I wanted to help u and show u how i managed to solve these problems.
I use:
compileSdkVersion 27
minSdkVersion 21
targetSdkVersion 27
versionName '2.6'
versionCode 8
buildToolsVersion '27.0.3'
I needed just to remove all old support dependencies from the gradle (for example: com.android.support:support-v4:25.1.0). And then add those two lines:
- implementation 'com.android.support:support-v4:27.1.0'
- implementation 'com.android.support:appcompat-v7:27.1.0'
Answered By - chainstair
Answer Checked By - Clifford M. (JavaFixing Volunteer)