Skip to content Skip to sidebar Skip to footer

Android Sdk Tools Rev.17 - Onclick - Corresponding Method Handler Not Found

I updated Android SDK Tools to revision 17 and after I opened Eclipse I found a list of new errors in the 'Problems' view which weren't there before the update. These errors were i

Solution 1:

What is the cause and solution of this problem?

The cause is your use of a string resource for the method name.

The solution is to get rid of the string resource and to put the method name in the android:onClick attribute directly.

UPDATE: If the markers do not go away, right-click over the project, and choose Android Tools > Clear Lint Markers.

Solution 2:

Soon after update/install it shows errors. But re-running Lint corrects the problem.

Right Click Project -> Android Tools -> Click "Run Lint: Check for common Errors"

Solution 3:

i had this same problem...

  1. check tools:context=".MainActivity" in your XML wheather its indicating to right java activity
  2. Rebuilt or clean project from build--> clean project in top menu
  3. make sure you have View in your function parameters public void onclickdo(View view)

hope this is help full

Post a Comment for "Android Sdk Tools Rev.17 - Onclick - Corresponding Method Handler Not Found"