diff --git a/shell/platform/android/io/flutter/plugin/platform/PlatformViewsController.java b/shell/platform/android/io/flutter/plugin/platform/PlatformViewsController.java index 37effad458bf8..92a27122e2574 100644 --- a/shell/platform/android/io/flutter/plugin/platform/PlatformViewsController.java +++ b/shell/platform/android/io/flutter/plugin/platform/PlatformViewsController.java @@ -240,10 +240,8 @@ public void clearFocus(int viewId) { private void ensureValidAndroidVersion() { if (Build.VERSION.SDK_INT < MINIMAL_SDK) { - Log.e(TAG, "Trying to use platform views with API " + Build.VERSION.SDK_INT - + ", required API level is: " + MINIMAL_SDK); - throw new IllegalStateException("An attempt was made to use platform views on a" - + " version of Android that platform views does not support."); + throw new IllegalStateException("Trying to use platform views with API " + + Build.VERSION.SDK_INT + ", required API level is: " + MINIMAL_SDK); } } };