デバッグでは動作しますが、リリース時に動作しなくなった場合は、ProGuardの問題である可能性があります。
これらの画像はGIFですか?
デフォルトでは、GIFとWebPはAndroidではサポートされていません。
アプリのニーズに応じて、いくつかのオプションモジュールをに追加する必要があります。
dependencies {
// If your app supports Android versions before Ice Cream Sandwich (API level 14)
compile 'com.facebook.fresco:animated-base-support:0.11.0'
// For animated GIF support
compile 'com.facebook.fresco:animated-gif:0.11.0'
// For WebP support, including animated WebP
compile 'com.facebook.fresco:animated-webp:0.11.0'
compile 'com.facebook.fresco:webpsupport:0.11.0'
// For WebP support, without animations
compile 'com.facebook.fresco:webpsupport:0.11.0'
}
あなたはProGuardのでGIFを使用する場合も、あなたはproguard-rules.pro
でこのルールを追加する必要があります。
-keep class com.facebook.imagepipeline.animated.factory.AnimatedFactoryImpl {
public AnimatedFactoryImpl(com.facebook.imagepipeline.bitmaps.PlatformBitmapFactory, com.facebook.imagepipeline.core.ExecutorSupplier);
}
GIF and WebP support on Android.
あなたがイメージがなくなっているとはどういう意味ですか?ログやコードなどの問題が何であるかを正確に表示できますか? – octohedron