意向未解决
在实施计费时不断出现此错误。到底是怎么回事?
01-30 22:33:31.600: E/Finsky(25902): [1] IntentUtils.createIntentForReceiver: Could not find receiver for com.example.game.android
01-30 22:33:31.610: D/Finsky(25902): [1] MarketBillingService.sendResponseCode: Response RESULT_USER_CANCELED cannot be delivered to com.example.game.android. Intent does not resolve.
显现:
...
<activity android:name="com.paypal.android.MEP.PayPalActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:configChanges="keyboardHidden|orientation"/>
</application>
<uses-permission android:name="com.android.vending.BILLING" />
<service android:name=".api.billing.BillingService" />
<receiver android:name=".api.billing.BillingReceiver">
<intent-filter>
<action android:name="com.android.vending.billing.IN_APP_NOTIFY" />
<action android:name="com.android.vending.billing.RESPONSE_CODE" />
<action android:name="com.android.vending.billing.PURCHASE_STATE_CHANGED" />
</intent-filter>
</receiver>
Keep getting this error while implementing billing. What is going on?
01-30 22:33:31.600: E/Finsky(25902): [1] IntentUtils.createIntentForReceiver: Could not find receiver for com.example.game.android
01-30 22:33:31.610: D/Finsky(25902): [1] MarketBillingService.sendResponseCode: Response RESULT_USER_CANCELED cannot be delivered to com.example.game.android. Intent does not resolve.
Manifest:
...
<activity android:name="com.paypal.android.MEP.PayPalActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:configChanges="keyboardHidden|orientation"/>
</application>
<uses-permission android:name="com.android.vending.BILLING" />
<service android:name=".api.billing.BillingService" />
<receiver android:name=".api.billing.BillingReceiver">
<intent-filter>
<action android:name="com.android.vending.billing.IN_APP_NOTIFY" />
<action android:name="com.android.vending.billing.RESPONSE_CODE" />
<action android:name="com.android.vending.billing.PURCHASE_STATE_CHANGED" />
</intent-filter>
</receiver>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
服务和接收者需要位于应用程序标签中!
The service and receiver need to be in the application tag!
我遇到了同样的问题,但有不同的解决方案:我忘记了包含。在我的<接收器>标签。它看起来像这样:
这个故事的寓意:仔细检查你的清单!
I had the same problem, but a different solution: I had forgotten to include an <intent-filter> in my <receiver> tag. It looked like this:
Moral of the story: double check your manifest!