Always shows me the error in the massages
java.lang.ClassNotFoundException: android.view.View$OnUnhandledKeyEventListener
My pr
The issue you faced was due to using alpha version of AppCompat library. Use stable version to get rid of this issue now and in future.
android.support
stable versionCurrently 27.1.1 is latest version of AppComactV7. You can see Maven Repo link to find out latest.
final def SUPPORT_VERSION = "27.1.1"
implementation "com.android.support:appcompat-v7:$SUPPORT_VERSION"
implementation "com.android.support:design:$SUPPORT_VERSION" // use only if already using
I use definitions to have same version for all support versions. Also ignore design library if you are not already using it.
compileSdkVersion
and targetSdkVersion
(Optional)You also need to downgrade your compileSdkVersion
& targetSdkVersion
to remove some gradle warnings.
so use below versions
compileSdkVersion 27
targetSdkVersion 27
Read about Alpha & Beta releases.