ERROR_NOT_MARKET_MANAGED
:该名称确实告诉了所有关于它自身的信息,应用程序不受Android Market(现称为Google Play)管理。更具体地说,您的应用程序的第11版不会在Google Play中上传或发布。
我应该处理这个错误还是这是一个不切实际的情况?
我会认为这是不切实际的情况。只要您在Google Play中上传新的应用版本,就不需要执行任何特殊的代码。 ERROR_NOT_MARKET_MANAGED更像是LVL开发警告,它帮助开发人员正确实施许可证检查代码,并按照正确的程序在项目构建时测试许可证检查。检查出LVL示例代码中的注释:
private class MyLicenseCheckerCallback implements LicenseCheckerCallback {
... ...
public void applicationError(ApplicationErrorCode errorCode) {
if (isFinishing()) {
// Don't update UI if Activity is finishing.
return;
}
// This is a polite way of saying the developer made a mistake
// while setting up or calling the license checker library.
// Please examine the error code and fix the error.
//String result = String.format(getString(R.string.application_error), errorCode);
//String result = "Error";
//handleLicensingResult(result);
}
}
整合LVL到应用程序的整点是使用谷歌Play上发布您的应用程序,并使用谷歌播放客户端应用程序下载和安装应用程序(见Requirements and Limitations节开发指南)。我看不到,可在最终用户的设备上运行时造成这个的ApplicationError任何一点,如果:
- 开发者遵循正确的程序上传(用于测试LVL),或在谷歌发布(真正释放)播放。
- 最终用户使用Google Play客户端应用程序购买,下载并安装应用程序。
如果最终用户以某种方式从其他渠道(不通过Google Play购买)中获取应用程序副本(LVL已集成并上载/在Google Play中发布)并尝试将其安装到他的设备上(与Google播放安装在该设备上的客户端应用程序),在这种情况下,LicenseCheckerCallback将转到dontAllow()而不是applicationError(ApplicationErrorCode errorCode)。
优秀的答案!谢谢。 – l33t
似乎这个错误不是强制性的。我已经开发了两年多的应用程序,而且我在使用ICS的SamsungGalaxy S2上运行我的应用程序时只看到了这个错误。 – slott
明智的回答这个,绝对精彩,很多人认为。 – Soham