Util.findReceiverName(): Cannot find billing receiver in package '*' for action: com.android.vending.billing.*

If anyone is working on putting in App billing in their projects and is getting a message that looks something like:

Util.findReceiverName(): Cannot find billing receiver in package '*' for action: com.android.vending.billing.*


The solution is to put the tag and contents in your manifest inside your < application> tag. If it is outside the service will work but the receiver wont!

2 comments:

  1. I see this message when I try to register my receiver dynamically (with Context.registerReceiver() rather than a <receiver> entry in AndroidManifest.xml). Any idea what I'm doing wrong?

    ReplyDelete
  2. Hey Sorry, I just saw this comment. What was happening to me was the tag was outside the tag. So if your doing it in code I would try:

    Context.getApplicationContext().registerReciver()

    This would in effect do the same thing. Since your context is probably an activity context and not an application context.

    However please ensure you read about memory leaks regarding the applicaiton context.

    Hope this helps :)

    ReplyDelete

Note: Only a member of this blog may post a comment.