首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >反应本地- Android动画WebP不起作用

反应本地- Android动画WebP不起作用
EN

Stack Overflow用户
提问于 2021-11-02 08:06:15
回答 1查看 612关注 0票数 1

我试图在android设备上播放一个动态的webp文件。我正在使用react-native-animated-webp软件包,但我在构建应用程序时出错了。

当我将以下行添加到app/build.gradle文件中时:

代码语言:javascript
复制
 implementation("com.facebook.fresco:fresco:2.0.0")
 // For animated GIF support
 implementation 'com.facebook.fresco:animated-gif:2.0.0'
 // For WebP support, including animated WebP
 implementation 'com.facebook.fresco:animated-webp:2.3.0'
 implementation 'com.facebook.fresco:webpsupport:2.3.0'

我发现了一个错误:

代码语言:javascript
复制
* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> 1 exception was raised by workers:
  java.lang.RuntimeException: Duplicate class com.facebook.imagepipeline.cache.CountingMemoryCacheInspector found in modules imagepipeline-base-2.3.0-runtime.jar (com.facebook.fresco:imagepipeline-base:2.3.0) and stetho-2.0.0-runtime.jar (com.facebook.fresco:stetho:2.0.0)
  Duplicate class com.facebook.imagepipeline.cache.CountingMemoryCacheInspector$DumpInfo found in modules imagepipeline-base-2.3.0-runtime.jar (com.facebook.fresco:imagepipeline-base:2.3.0) and stetho-2.0.0-runtime.jar (com.facebook.fresco:stetho:2.0.0)
  Duplicate class com.facebook.imagepipeline.cache.CountingMemoryCacheInspector$DumpInfoEntry found in modules imagepipeline-base-2.3.0-runtime.jar (com.facebook.fresco:imagepipeline-base:2.3.0) and stetho-2.0.0-runtime.jar (com.facebook.fresco:stetho:2.0.0)

以前有没有人面临过这个问题?我该怎么解决呢?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-11-02 09:12:49

我将Flipper版本升级到FLIPPER_VERSION=0.99.0,然后弗雷斯科版本从2.0.0升级到2.5.0,然后cd android && ./gradlew clean对我起作用

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69807077

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档