# MediaCodec.IncompatibleWithBlockModelException

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# IncompatibleWithBlockModelException

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/media/MediaCodec.IncompatibleWithBlockModelException "View this page in Java")  

```
class IncompatibleWithBlockModelException : RuntimeException
```

|---|---|---|---|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                                                        |||||
| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)                                                                                         ||||
|   | ↳ | [java.lang.Exception](https://developer.android.com/reference/kotlin/java/lang/Exception.html#)                                                                                    |||
|   |   | ↳ | [java.lang.RuntimeException](https://developer.android.com/reference/kotlin/java/lang/RuntimeException.html#)                                                                   ||
|   |   |   | ↳ | [android.media.MediaCodec.IncompatibleWithBlockModelException](https://developer.android.com/reference/kotlin/android/media/MediaCodec.IncompatibleWithBlockModelException#) |

Thrown when the codec is configured for block model and an incompatible API is called.

## Summary