亚马逊应用商店 Android Java.Lang.VerifyError 无法复制

发布于 2024-12-14 02:15:07 字数 489 浏览 0 评论 0原文

我已向亚马逊应用商店提交了一个应用程序。现在已经因为同样的原因被拒绝了两次,但我找不到问题所在。它在开始时就崩溃了,通常是 2-3 个活动窗口。这个错误在我们的测试设备上从未发生过,并且 Google 市场上的应用程序也没有出现过任何错误或崩溃。所以到目前为止我完全无法复制这个错误。

在上次拒绝时,我们请求了他们发送的堆栈跟踪,但只有错误,没有警告,根据我收集的信息,我需要准确找出导致 Java.Lang.VerifyError 的方法> 来自 W/dalvikvm。是否可以合理地假设,当他们反编译应用程序并将其亚马逊 drm/跟踪/任何代码注入应用程序并重新编译它时,它会导致与我的某些代码发生冲突错误?或者 Amazon 可能使用与我们不同的 Java 版本进行编译? (我们的是 1.6)

该应用程序将 minSDK 和 targetSDK 设置为 api8,最低为 2.2,我们针对 2.2 进行编译,是否有其他人以前在 Amazon 上遇到过此错误,也许能够给我一些关于如何问题解决了吗?

谢谢

I have submitted an app to the Amazon app store. It has been rejected twice now for the same reason, but I can't find the problem. It crashes right at the start, usually 2-3 activity windows in. This error never happens on our test devices, and there hasn't been a single error or crash from the app on the Google market. So thus far I've been completely unable to replicate the error.

On the last rejection we requested a stacktrace, which they sent, but only with errors, not warnings, which from what I gather is what I need to find out exactly what method is causing the Java.Lang.VerifyError from W/dalvikvm. Is it reasonable to assume that when they decompile the app, and inject their amazon drm/tracking/whatever code into the app, and recompile it, it's causing clashing errors with some of my code? or that Amazon are possibly compiling on a different version of Java than we are? (ours is 1.6)

The app has both minSDK and targetSDK set to api8, which is 2.2 minimum, and we compile it against 2.2, Has anyone else had this error with Amazon before and might be able to give me some insight as to how the problem was resolved?

Thanks

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

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

发布评论

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

评论(1

倾城月光淡如水﹏ 2024-12-21 02:15:07

发现问题了。在清单中,有一个 .java 文件被声明为活动,它最初就是活动,但已更改为扩展 Dialog。

当亚马逊将代码注入您的应用程序时,他们会查看清单以查找 Android 活动,并向其中注入代码,例如回调和方法覆盖,其中一些特定于 Activity 类。当亚马逊查看我的清单时,他们认为该类是一个活动,但它现在实际上是一个对话框,并且在尝试覆盖不存在的方法时应用程序崩溃了。

一旦删除了非实际活动类的清单声明,该应用程序就获得了批准。奇怪的是,当应用程序编译时,Google 和 Eclipse 没有发现声明的活动不是活动。

希望这可以帮助其他似乎无法找出其应用程序未获得亚马逊批准的原因的人。

Found the problem. In the Manifest there was a .java file that was declared as an activity, which it was originally, but it had been changed to extend Dialog instead.

When Amazon injects code into your app, they look at the manifest to find the Android Activities, and inject code into them such as callbacks and method overrides, some of which are specific to the Activity class. When Amazon looked at my manifest, they thought the class was an Activity, but it was actually now a Dialog, and the app was crashing when trying to override methods that didn't exist.

Once removing the manifest declarations to the classes that weren't actual Activities, the app got approved. Its weird that google and eclipse didn't pick up on the declared activities that weren't activities when the app got compiled.

Hope this can help others who cant seem to find out the reason their apps not getting approved by Amazon.

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