Stickers: [Android] Asset file doesn't exist. (They actually do!)

Created on 23 Dec 2018  Β·  10Comments  Β·  Source: WhatsApp/stickers

Hello,

After modifying what is necessary and adding my stickers into folder '1'. I renamed the files to 01_A.webp and 02_B.webp etc.

I also modified this in the contents.json. I am receiving the following error when opening the app:

_Error: Asset file doesn't exist. pack: TheMishPack, sticker: 01_A.webp
See logcat for stack trace_

I opened the .apk in Android Studio and verified that the images do exist within the assets folder. Any ideas why this is?

Most helpful comment

Thanks @MarvinJWendt for helping with this.

All 10 comments

Hey @bitmish, could you please post your contents.json here?
And probably a screenshot of your file structure?
We will be able to solve this issue a lot quicker then :)

I just went through. The issue was that I modified the identifier in the
contents so it was looking up the wrong folder.

Thanks for your prompt response!

On Sun, Dec 23, 2018 at 6:36 PM MarvinJWendt notifications@github.com
wrote:

Hey @bitmish https://github.com/bitmish, could you please post your
contents.json here?
And probably a screenshot of your file structure?
We will be able to solve this issue a lot quicker then :)

β€”
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/WhatsApp/stickers/issues/364#issuecomment-449644123,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ad6iQ1QXk4kwDGprq2p5hQZ58ROQJLdKks5u76LtgaJpZM4ZfyoJ
.

>

Regards,
Mishal Al Refai.

Thanks @MarvinJWendt for helping with this.

Hey, i have the same issue. What should i do to resolve the issue. can you post the solution in detail.

Can’t remember exactly, but, the β€œidentifier” in contents.json should match
the folder name which the assets (images) are in. If you didn’t change the
folder name, keep identifier as it was before.

On Sun, Jan 20, 2019 at 10:49 AM RaviBoult notifications@github.com wrote:

Hey, i have the same issue. What should i do to resolve the issue. can you
post the solution in detail.

β€”
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/WhatsApp/stickers/issues/364#issuecomment-455844898,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ad6iQ0dVHflPRVjpbgQo5ShHpGi7cIBgks5vFB-hgaJpZM4ZfyoJ
.

>

Regards,
Mishal Al Refai.

screenshot 2

the identifier is 1 and the contents folder is also with the same name. but the generated apk shows the same pack error..which you faced earlier.

I'm also facing same issue, can anyone help me! folder name and identifier name is same, but still ☹️☹️

@basith12, could you please post your whole contents.json and a screenshot of your file structure?

Hi there.

I am facing the same issue as well. Can someone pls help. Have changed the identifier name....

Here;s my json content file >

{
"android_play_store_link": "",
"ios_app_store_link": "",
"sticker_packs": [
{
"identifier": "1",
"name": "sentosastickerpack",
"publisher": "Sentosa Development Corporation",
"tray_image_file": "tray_donutlady.png",
"image_data_version":"1",
"avoid_cache":false,
"publisher_email":"[email protected]",
"publisher_website": "https://www.sentosa.com.sg",
"privacy_policy_website": "https://www.sentosa.com.sg/en/data-protection-policy",
"license_agreement_website": "https://www.sentosa.com.sg/en/legal-information",
"stickers": [
{
"image_file": "01_Peacock2.webp",
"emojis": ["β˜•","πŸ™‚"]
},
{
"image_file": "02_Donut-Lady.webp",
"emojis": ["πŸ˜„","πŸ˜€"]
},
{
"image_file": "03_dance-guy-1.webp",
"emojis": ["πŸ˜†","πŸ˜‚"]
},
{
"image_file": "04_dance-guy-2.webp",
"emojis": ["😩","😰"]
},
{
"image_file": "05_family.webp",
"emojis": ["😭","πŸ’§"]
},
{
"image_file": "06_Hammock2.webp",
"emojis": ["😍","β™₯"]
},
{
"image_file": "07_OutofOffice.webp",
"emojis": ["πŸ’”","πŸ‘Ž"]
},
{
"image_file": "08_Outofoffice2.webp",
"emojis": ["😍","πŸ’‘"]
}
]
}
]
}

Screenshot 2020-05-28 at 1 29 26 AM

Hi @zaki-jufri, could you please open a new issue?
This way we do not disturb the other participants of this post anymore.
Thanks :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

livealmutaywia picture livealmutaywia  Β·  3Comments

IshanUdyoga picture IshanUdyoga  Β·  5Comments

superteacher2019 picture superteacher2019  Β·  3Comments

noomanidrisi picture noomanidrisi  Β·  5Comments

sagarvekariyam picture sagarvekariyam  Β·  6Comments