Android 应用内计费 - 未生成 IMarketBillingService.java

发布于 2024-12-22 17:52:40 字数 387 浏览 6 评论 0原文

我有一个实施了应用内计费的项目。目前已开启 市场,一切都运转良好。现在我想为更新创建一个新版本,事情就颠倒了。 我已经清理了我的项目,并且不再生成 ImarketBillingService.java 文件。我尝试过的事情:

  • 刷新、清理、重新导入一百万次

  • 检查/取消选中项目构建器

  • 将 IMarketBillingService.aidl 文件重新添加到我的项目

  • 针对其他 API 级别构建

  • 从我的项目的旧版本中添加生成的java文件(签名顺利,但是当我在设备上安装apk后,应用程序立即崩溃,因为它找不到计费服务所需的文件)< /p>

I have a project with in-app billing implemented. It's currently on
the market, and everything is working fine. Now that I wanted to make a new build for an update, things went upside down.
I had cleaned my project and the ImarketBillingService.java file doesn't get generated anymore. Things that I've tried:

  • refresh, clean, reimport a million times

  • checking/unchecking project builders

  • re-adding the IMarketBillingService.aidl file to my project

  • building for other API levels

  • adding the generated java file from an older version of my project (signing went okay, but after I've installed the apk on a device, the app immediately crashed because it couldn't find the necessary files for billing service)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

忘年祭陌 2024-12-29 17:52:40

我在这里找到了我的答案:
21.0.1 android sdk 上的 Android 预编译器错误

Android SDK 工具 21.0.1 预编译器存在问题。 .svn 文件夹似乎存在问题,导致预编译阶段失败,从而阻止 IMarketBillingService.aidl 文件的处理。此链接有几个解决方法。

I found the answer for me here:
Android Pre Compiler error on 21.0.1 android sdk

There is an issue with the Android SDK tools 21.0.1 pre-compiler. It seems to have issues with .svn folders causing the pre-compile stage to fail, preventing the processing of the IMarketBillingService.aidl file. This link has a couple of workarounds for it.

凶凌 2024-12-29 17:52:40

对我有用的是这条指令

如果您在非 Eclipse 环境中进行开发:创建以下目录 /src/com/android/vending/billing 并将 IInAppBillingService.aidl 文件复制到此目录中。

即使我使用的是 Eclipse Juno,这是在安装了 adt-preview 和 android tools-preview 之后,它们都没有解决问题。

你只需要遵循非日食指示,因为现在一切都搞砸了

what worked for me was this instruction

If you are developing in a non-Eclipse environment: Create the following directory /src/com/android/vending/billing and copy the IInAppBillingService.aidl file into this directory.

even though I am using Eclipse Juno, this was after installing the adt-preview and android tools-preview, none of which solved the problem.

You just have to follow the non-eclipse instructions because everything is messed up right now

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文