Android is correct - you don't have that class. You do have some other class that you apparently think should be used, but which isn't, because it's not "com.androidexample.broadcastreceiver.IncomingSms". Programming is all about paying attention to details.