diff --git a/shell/platform/android/io/flutter/embedding/android/FlutterImageView.java b/shell/platform/android/io/flutter/embedding/android/FlutterImageView.java index 46079d429f56c..7f48e4edf157b 100644 --- a/shell/platform/android/io/flutter/embedding/android/FlutterImageView.java +++ b/shell/platform/android/io/flutter/embedding/android/FlutterImageView.java @@ -183,9 +183,13 @@ public boolean acquireLatestImage() { // // To avoid exceptions, check if a new image can be acquired. if (pendingImages < imageReader.getMaxImages()) { - nextImage = imageReader.acquireLatestImage(); - if (nextImage != null) { - pendingImages++; + try { + nextImage = imageReader.acquireLatestImage(); + if (nextImage != null) { + pendingImages++; + } + } catch (IllegalStateException exception) { + // just bypass } } invalidate();