gpt4 book ai didi

android - IabHelper 的 Eclipse 错误中的 Google In-App Billing 无法解析为类型

转载 作者:太空狗 更新时间:2023-10-29 15:36:28 26 4
gpt4 key购买 nike

我一直在尝试通过关注 http://developer.android.com/training/in-app-billing/preparing-iab-app.html#GetSample 在我的一个 Android 应用程序中实现 Google 应用内结算。但在执行“现有项目”的步骤后,我收到“IabHelper 无法解析为类型”的错误。我也添加了图片。 enter image description here

最佳答案

确保您已遵循第 3 步:

Add the helper classes from the /util directory of the TrivialDrive sample to your project. Remember to change the package name declarations in those files accordingly so that your project compiles correctly.

您需要复制com.example.android.trivialdrivesample.util 下的所有类并将它们放入您的项目中。 IabHelper 是其中之一,似乎是您所缺少的。

enter image description here

关于android - IabHelper 的 Eclipse 错误中的 Google In-App Billing 无法解析为类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17941645/

26 4 0
文章推荐: C中的条件#include
文章推荐: html - Orchard CMS - 主题
文章推荐: c - scanf:浮点格式未链接
文章推荐: C# - 创建 HTML 报告
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com