APK扩展发出─下载失败,因为资源不能被发现的android [英] apk expansion issue- Download failed because the resources could not be found android

查看:910
本文介绍了APK扩展发出─下载失败,因为资源不能被发现的android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用它有大约250 MB的资源扩张的apk文件。前几天,这是工作的罚款。但现在我面临的apk扩展文件中的一个关键问题。

它会给总是 **下载失败,因为资源不能找到**

和还我收到的日志猫警告

  I / LicenseChecker(12165):绑定到授权服务。
I / LicenseChecker(12165):对XXXXX服务呼叫checkLicense
I / LicenseChecker(12165):启动监视超时。
I / LicenseChecker(12165):收到的响应。
I / LicenseChecker(12165):清除超时。
 

  

我已经设置正确的文件字节,公钥和.obb名也。

有由谷歌任何政策变化APK扩展?

没有任何人有关于这个问题,请重播的想法。

在此先感谢。

解决方案

在这里,我回答我的问题,以便其他人可以得到的好处,我已经通过联系谷歌的支持解决了我的问题,因为每有答复,我们只能用扩张文件功能后发布,Beta测试-alpha测试,我们可以在草稿模式下使用按照新的更新。

所以,现在任何人都可以使用的扩展,除了草稿模式。

而在你需要扩展dwonloading stasrts之前删除签名licecning code 另外,请确保您的SHA密钥,您的应用程序不应该在草案

我有我的应用程序中删除低于code

 尝试{
         PackageInfo信息= getPackageManager()。getPackageInfo(
         我的PKG的名字,
        /// android.test.purchased
         PackageManager.GET_SIGNATURES);
         对于(签名签名:info.signatures){
         消息摘要MD = MessageDigest.getInstance(SHA);
         md.update(signature.toByteArray());

         Base64.DEFAULT));
         Base64.DEFAULT));
         }
         }赶上(的NameNotFoundException E){

         }赶上(抛出:NoSuchAlgorithmException E){

         }
 

i am using apk expansion file which have approx 250 MB resource. before few days it was working fine. but now i facing one critical issue with apk expansion file.

it will give always **Download failed because the resources could not be found**

and also i am getting warning in log cat

I/LicenseChecker(12165): Binding to licensing service.
I/LicenseChecker(12165): Calling checkLicense on service for XXXXX
I/LicenseChecker(12165): Start monitoring timeout.
I/LicenseChecker(12165): Received response.
I/LicenseChecker(12165): Clearing timeout.

i have set correct file bytes and public key and .obb name also.

is there any policy change by google for apk expansion ?

does anybody have idea regarding this issue please replay.

Thanks in advance.

解决方案

Here I am answering my own question so that others can get benefit, I have resolved my problem by contacting Google support, As per there reply we only can use Expansion files feature after publish-Beta testing-Alpha testing , we can use in DRAFT mode as per new update.

So now anyone can use expansion except Draft mode.

And in Your You need to remove signature licecning code before Expansion dwonloading stasrts Also make sure your SHA key and your application should not be in Draft

I have remove below code from my app

try {
         PackageInfo info = getPackageManager().getPackageInfo(
         "my pkg name",
        /// android.test.purchased
         PackageManager.GET_SIGNATURES);
         for (Signature signature : info.signatures) {
         MessageDigest md = MessageDigest.getInstance("SHA");
         md.update(signature.toByteArray());

         Base64.DEFAULT));
         Base64.DEFAULT));
         }
         } catch (NameNotFoundException e) {

         } catch (NoSuchAlgorithmException e) {

         }

这篇关于APK扩展发出─下载失败,因为资源不能被发现的android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆