View.OnClickListener
must implement the function onClick()
otherwise your class should be abstract, so that you could implement your onClick()
function in some child class. But in your case you have made a spelling mistake. It should be onClick()
instead of Onclick()
;
More Related Contents:
- Why is my app is crashing while using async task?
- Mapbox Greyed out on dialog/Popup [closed]
- Why my program crash when i press back Button
- How to redirect multiple types of users to their respective Activities?
- Execution Failed for task :app:compileDebugJavaWithJavac in Android Studio
- This app is not authorized to use Firebase Authentication.Please verify that the correct package name and SHA-1 are configured in the Firebase Console
- Android Studio Error: Error:CreateProcess error=216, This version of %1 is not compatible with the version of Windows you’re running
- Compilation failed to complete:Program type already present: com.google.android.gms.internal.measurement.zzabn
- Android Studio debugger highlights the wrong lines
- Error: Unable to run mksdcard SDK tool
- Import Google Play Services library in Android Studio
- ‘Source code does not match the bytecode’ when debugging on a device
- :app:dexDebug ExecException finished with non-zero exit value 2
- == and .equals() not working in java [duplicate]
- Can we instantiate an abstract class directly? [duplicate]
- How to fix the ”module java.base does not “opens java.io” to unnamed module ” error in Android Studio?
- Android Studio Convert ISO string to “America/New_York” when adding to event to calendar
- Android: Dex cannot parse version 52 byte code
- Failed to import new Gradle project: failed to find Build Tools revision *.0.0
- How to print to the console in Android Studio?
- android studio with Java compiler error: string too large to encode using UTF-8 written instead as ‘STRING_TOO_LARGE’
- tools.jar seems to be not in Android Studio classpath on Windows 8
- How to update edittext whenever a quantity is added in android studio
- MediaSessionCompat:Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent
- Error:Timeout waiting to lock buildscript class cache for build file when change minSdkVersion
- Android Studio layout editor cannot render custom views
- Error: Could not find com.google.gms:google-services:1.0. when adding google service plugin in build.gradle in android studio
- How to enable ProGuard obfuscation in Android Studio?
- Unity3D and Android Studio Integration
- Error:Could not initialize class com.android.sdklib.repositoryv2.AndroidSdkHandler