Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] Error in StickerPackValidator.java #429

Closed
1 of 4 tasks
PXNX opened this issue Feb 26, 2019 · 20 comments
Closed
1 of 4 tasks

[Android] Error in StickerPackValidator.java #429

PXNX opened this issue Feb 26, 2019 · 20 comments
Assignees
Labels
Android android issues

Comments

@PXNX
Copy link

PXNX commented Feb 26, 2019

Specifications
OS Version: [Android 7.0.1, 8.0.1, 9.0.1]
Device Manufacturer: [Samsung]

Stickers

  • My stickers do comply with the sticker requirements (512x512 and < 100 KB)
  • My tray icon does comply with the requirements (96x96 and < 50 KB)
  • I am using WebP images for stickers.
  • I am using PNG images for stickers.

Problem Description
by trying to run the app i get the following error:

error: cannot access AnimatedImage
class file for com.facebook.imagepipeline.animated.base.AnimatedImage not found

Reproduction Steps
just open up the project (freshly downloaded from here) and try to sync, run or make a new project.
I'm using the newest (canary) version of android studio and retried it with other versions of android studio already, getting the same result.

Links
i asked it on stackoverflow, too.
https://stackoverflow.com/questions/54834307/error-in-offical-whatsapp-stickers-example-app

and another one did it aswell.
https://stackoverflow.com/questions/54427681/error-cannot-access-animatedimage-class-file-for-com-facebook-imagepipeline-ani

Thanks in advance - hoping for a quick response.

@PXNX PXNX added the Android android issues label Feb 26, 2019
@MarvinJWendt
Copy link
Collaborator

Hey @PXNX,
Have you seen this answer on StackOverflow?
image
If not please verify that this is not your issue :)

@PXNX PXNX changed the title [Android] [Android] Error in StickerPackValidator.java Feb 26, 2019
@PXNX
Copy link
Author

PXNX commented Feb 27, 2019

It doesn't have to do anything with that.
I simply can't create a project, nor sync/run it.

@pratikbutani
Copy link

@PXNX Which version do you use of fresco?

@PXNX
Copy link
Author

PXNX commented Mar 1, 2019

1.12.0, but i also tried it with a few other versions.

@pratikbutani
Copy link

pratikbutani commented Mar 2, 2019 via email

@PXNX
Copy link
Author

PXNX commented Mar 2, 2019

still same error.

@onyet
Copy link

onyet commented Mar 4, 2019

Just update your Android API, Build tools, Kotlin, and grandle. I fixed just like that. Thanks.

@ghost
Copy link

ghost commented Mar 4, 2019

Hi.
Similaro problem whit me also , giving this 2 errors when try to Build Project

error: package com.facebook.animated.webp does not exist
error: cannot find symbol variable WebPImage

@PXNX
Copy link
Author

PXNX commented Mar 5, 2019

Its all up-to-date, but still the same error.

@simonzhexu
Copy link
Contributor

Hi, @PXNX , could you share the android studio version you have? It appears you have some issues downloading fresco library from JCenter.

@PXNX
Copy link
Author

PXNX commented Mar 10, 2019

Android Studio 3.5 Canary 6
Build #AI-183.5429.30.35.5326993, built on February 21, 2019
JRE: 1.8.0_152-release-1343-b01 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 7 6.1

Android Studio 3.3.2
Build #AI-182.5107.16.33.5314842, built on February 16, 2019
JRE: 1.8.0_152-release-1248-b01 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 7 6.1

Those were 2 of the versions i tried it with.
I also made sure to have all components up-to-date,
but still the same error.

@dawud-tan
Copy link

@simonzhexu I'm experiencing same error, with fresco 1.13.0

error: cannot access AnimatedImage
error: cannot access AnimatedImageDecoder

following is my dependency

    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'com.facebook.fresco:fresco:1.13.0'
    implementation 'com.facebook.fresco:animated-webp:1.13.0'
    implementation 'com.facebook.fresco:webpsupport:1.13.0'
    implementation 'androidx.legacy:legacy-support-core-utils:1.0.0'
    implementation 'com.google.android.gms:play-services-ads-lite:17.2.0'
    implementation 'com.google.android.material:material:1.0.0'
    implementation 'com.squareup.picasso:picasso:2.71828'

here my android studio version

Android Studio 3.3.2
Build #AI-182.5107.16.33.5314842, built on February 16, 2019
JRE: 1.8.0_152-release-1248-b01 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

@dawud-tan
Copy link

@simonzhexu I'm just manually download all fresco deps, and import it using implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs'), then it works just fine:

animated-base-1.13.0, animated-drawable-1.13.0, animated-webp-1.13.0, bolts-tasks-1.4.0, drawee-1.13.0, fbcore-1.13.0, fresco-1.13.0, imagepipeline-1.13.0, imagepipeline-base-1.13.0, nativeimagefilters-1.13.0, nativeimagetranscoder-1.13.0, soloader-0.6.0, webpsupport-1.13.0

@sachint16
Copy link

just add one more dependency
implementation 'com.facebook.fresco:animated-base:1.13.0', then it works just fine

@dawud-tan
Copy link

@tanwarsachin 'com.facebook.fresco:animated-base:1.13.0' is already transitive dependency of 'com.facebook.fresco:animated-webp:1.13.0', it will just make it explicit, but I think it would not solve both error: cannot access AnimatedImage and cannot access AnimatedImageDecoder. Though I'm still curious what could have caused it in the first place?

@PXNX
Copy link
Author

PXNX commented Apr 23, 2019

Somehow it seems to work as for now <3
@tanwarsachin

@MarvinJWendt
Copy link
Collaborator

@PXNX please close this issue if you do not need further advice :)

@vimalcvs
Copy link

vimalcvs commented Jun 5, 2019

@PXNX @MarvinJWendt @pratikbutani @onyet @Lohigno

just add one more dependency

    implementation 'com.facebook.fresco:fresco:1.13.0'
    implementation 'com.facebook.fresco:animated-webp:1.13.0'
    implementation 'com.facebook.fresco:webpsupport:1.13.0'

    implementation 'com.facebook.fresco:animated-base:1.13.0'

@simonzhexu
Copy link
Contributor

should be fixed.

@Blast06
Copy link

Blast06 commented Jul 2, 2019

Somehow it seems to work as for now <3
@tanwarsachin

Lol, also for me! thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android android issues
Projects
None yet
Development

No branches or pull requests

9 participants