Skip to content Skip to sidebar Skip to footer

Textwatcher&editable Cannot Be Resolved To A Type--from "learning Android"

I am reading the book 'Learning Android', I typed the code on page 71, the eclipse show the error: Editable cannot be resolved to a type... TextWatcher cannot be resolved to a typ

Solution 1:

You are missing this import:

import android.text.TextWatcher;

Add it, and it should work.

Note: After you add the import Eclipse might tell you that you have "unimplemented methods". Just add them and move your code around to fit it.

Edit

Also add:

import android.text.Editable;

Post a Comment for "Textwatcher&editable Cannot Be Resolved To A Type--from "learning Android""