简体   繁体   English

发布后调试Android应用程序

[英]Debugging Android app after release

I am working on some fixes to an app already in the store. 我正在对已经存储在商店中的应用程序进行一些修复。 The app uses an expansion file. 该应用程序使用扩展文件。 I have created a new version of the app and uploaded the apk and the associated expansion file. 我创建了一个新版本的应用程序并上传了apk和相关的扩展文件。 When I try to run the app from eclipse, the app starts up, but then the download of the expansion file fails with the message: "Download failed because you may not have purchased this app." 当我尝试从eclipse运行应用程序时,应用程序启动,但随后下载的扩展文件失败并显示消息:“下载失败,因为您可能没有购买此应用程序。” Obviously I have NOT purchased the app, I am developing it! 显然我没有购买应用程序,我正在开发它! So how do I get this to work? 那么我该如何让它发挥作用呢?

Since I don't know the code that is in your app I would like to provide you with some pointers to help you to find your answer: 由于我不知道您的应用程序中的代码,我想为您提供一些指导,以帮助您找到答案:

  • Have you updated the versionCode in your AndroidManifest.xml? 您是否更新了AndroidManifest.xml中的versionCode?
  • Did you update the versionCode in your application that is used to get the expansion file(s)? 您是否更新了用于获取扩展文件的应用程序中的versionCode?
  • Have you waited for around an hour after uploading the new .apk and new expansion files? 上传新的.apk和新的扩展文件后,您是否等了大约一个小时? It took me around an hour every time I had to upload a new .apk and/or expansion file before it was available to me. 每次我必须上传一个新的.apk和/或扩展文件之前我花了大约一个小时才能使用它。
  • Have you uninstalled the application before trying to test out your new expansion file? 在尝试测试新的扩展文件之前,您是否已卸载该应用程序? With the provided Libraries a database will be used to store some information (like file size). 使用提供的库,数据库将用于存储一些信息(如文件大小)。 An install of the application on top of an existing one might not remove the information from this database. 在现有应用程序之上安装应用程序可能无法从此数据库中删除该信息。

See picture below for next pointers: 有关下一个指示,请参见下图:

  • I assume you are using it but just to check, did you use the right "Public key"? 我假设你正在使用它,但只是为了检查,你使用了正确的“公钥”吗?
  • Have you added the e-mail address at the "Test Accounts" section. 您是否在“测试帐户”部分添加了电子邮件地址。 This would be the e-mail address of the account on the device you are testing the expansion files with. 这将是您正在测试扩展文件的设备上的帐户的电子邮件地址。
  • Have you set the "License Test Response" to a response that suits your needs? 您是否已将“许可证测试响应”设置为适合您需求的响应?

播放商店发布商帐户个人资料页

If these pointers don't help you out I might need some more information about what you have tried etc. in order for me to help you. 如果这些指针没有帮助你,我可能需要更多关于你尝试过的信息,以便我帮助你。

Yes but now approach has been changed a bit. 是的,但现在方法已经改变了一点。 each and every application has key, 每个应用程序都有密钥,

this error comes basically for few reasons, make sure : 这个错误基本上是由于几个原因,请确保:

  1. you are logged in from your test acoount into your device. 您已从测试帐户登录到您的设备。
  2. key are same in your code as well. 密钥在您的代码中也是相同的。
  3. you have mentioned the size of expansion file in code correctly in bytes. 您已经在代码中正确地以字节为单位提到了扩展文件的大小。
  4. after uploading wait for 3-4 hours, then it will start downloading instantly it does not work. 上传后等待3-4个小时,然后它会立即开始下载它不起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM