Skip to content Skip to sidebar Skip to footer

Android Studio Xml Error "corresponding Method Handler Not Found" On Onclick

Why do I get error 'Corresponding method handler not found' on the XML onClick line, after naming the onClick in XML and calling it on Main Activity? Snippet from activity_main.xml

Solution 1:

Do this

funtest(view: View){
        Log.e("Click","Yes")
    }

This will work.

Post a Comment for "Android Studio Xml Error "corresponding Method Handler Not Found" On Onclick"