apk expansion issue- Download failed because the resources could not be found android

旧城冷巷雨未停 提交于 2019-12-01 01:34:59

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) {

         }

May this help you:

Buddy to download Expansion File from Google Server we must have to Login with any Google Account in Device,
Otherwise Expansion File will not Start Downloading...

OR

While your Application is getting Published ( Time between you pressing publish and it actually going live on Google Play ) the Expansion Files are Unavailable...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!