Stickers: Asset file doesn't exist only sample stickers works [Android]

Created on 31 Dec 2018  路  5Comments  路  Source: WhatsApp/stickers

I tried to add stickers to my app and some of my stickers works and some of them are getting this error
Asset file doesn't exist . (followed all the guidelines)
tried both webP photoshop plugin (unchecked save metadata) and android studio conversion but no luck. after spending lot of time with this error figured out way to fix this error by adding Gaussian blur in photoshop.(Some Stickers works with this trick)
but still getting this same error :-(

I'm using React Native library https://github.com/Pocket-titan/react-native-whatsapp-stickers-android

only works when merge both layers in PS (sample sticker and sticker that i created). OR replacing the sticker with sample sticker

Sorry for my bad english..

sticker that not works..
10_farm_cow.zip

Most helpful comment

After Spending some time fixed this error completely !

Add this lines in Android/app/build.gradle
android { aaptOptions { noCompress "webp" } .... }
the compression of webp file during build causes problem with FileDescriptor in ContentProvider.

thanks..

All 5 comments

Hey @IshanUdyoga,

after spending lot of time with this error figured out way to fix this error by adding Gaussian blur in photoshop.

This is weird, are you sure you haven't exported it differently? Gaussian Blur should not influence the health of your image at all.

Your export process should be:

  1. Export file from Photoshop as .png ('Save As' -> PNG)
  2. Drop your file into Android Studio
  3. Right click on the file in Android Studio
  4. Choose Convert to WebP
  5. Follow the onscreen instructions by Android Studio

If you followed these instructions and your image still throws an error, feel free to respond here :)

@MarvinJWendt
Thanks for the quick response :-)

I did your export process earlier but not worked

I tried editing sample sticker in photoshop and put it in my sticker app then that same error throws again.
Without editing sample sticker (just drag n drop sample sticker webP to photoshop and then exported to webP) error not throws to that sticker.

This is the error -

screenshot_20181230-212239

After upgrading fresco v 1.10.0 to v 1.11.0 error was changed -

screenshot_20181231-120601

Also this error shows after few second -
screenshot_20181231-120607

I dont know this is the right place to ask React Native questions :-( but no place to ask this kind of question..

thanks..

After Spending some time fixed this error completely !

Add this lines in Android/app/build.gradle
android { aaptOptions { noCompress "webp" } .... }
the compression of webp file during build causes problem with FileDescriptor in ContentProvider.

thanks..

Hey @IshanUdyoga,
Have you removed those lines?
Normally they should already be in there 馃
https://github.com/WhatsApp/stickers/blob/1a9f00222f96779e50b0269e58a9bb79b10221fa/Android/app/build.gradle#L4-L7

@MarvinJWendt nope that react native library forgot to add this line :-) thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

modys picture modys  路  4Comments

sagarvekariyam picture sagarvekariyam  路  6Comments

Go
obaid55 picture obaid55  路  3Comments

Sparklester picture Sparklester  路  4Comments

JNSAPH picture JNSAPH  路  4Comments