facebook / fresco

An Android library for managing images and the memory they use.
https://frescolib.org/
MIT License
17.08k stars 3.75k forks source link

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/facebook/infer/annotation/Assertions; #2692

Open houchang1991 opened 2 years ago

houchang1991 commented 2 years ago

Description

Successfully compile my app with fresco lib, but while running, such crash occurs:

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/facebook/infer/annotation/Assertions;
    at com.facebook.common.util.UriUtil.<clinit>(UriUtil.java:41)
    at com.facebook.common.util.UriUtil.isLocalFileUri(UriUtil.java:96)
        ...
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.facebook.infer.annotation.Assertions" on path: DexPathList[[zip file 
...
Suppressed: java.io.IOException: Failed to open dex files from /data/app/~~qCzWekrFwP9Ah2fUri5d4Q==/com.huawei.photos-AyZDGmPkpu5Ke1c5Xm8XZg==/split_Editor.config.armeabi_v7a.apk because: Entry not found
...

Reproduction

Additional Information

FlyingTotoro commented 2 years ago

add Dependence 'com.facebook.infer.annotation:infer-annotation'