Stay organized with collections
Save and categorize content based on your preferences.
UnsupportedClassVersionError
open class UnsupportedClassVersionError : ClassFormatError
Thrown when the Java Virtual Machine attempts to read a class file and determines that the major and minor version numbers in the file are not supported.
Summary
Public constructors |
Constructs a UnsupportedClassVersionError with no detail message.
|
Constructs a UnsupportedClassVersionError with the specified detail message.
|
Public constructors
UnsupportedClassVersionError
UnsupportedClassVersionError()
Constructs a UnsupportedClassVersionError
with no detail message.
UnsupportedClassVersionError
UnsupportedClassVersionError(s: String!)
Constructs a UnsupportedClassVersionError
with the specified detail message.
Parameters |
s |
String!: the detail message. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# UnsupportedClassVersionError\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nUnsupportedClassVersionError\n============================\n\n```\nopen class UnsupportedClassVersionError : ClassFormatError\n```\n\n|---|---|---|---|---|---------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||||||\n| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html) |||||\n| | ↳ | [java.lang.Error](/reference/kotlin/java/lang/Error) ||||\n| | | ↳ | [java.lang.LinkageError](/reference/kotlin/java/lang/LinkageError) |||\n| | | | ↳ | [java.lang.ClassFormatError](/reference/kotlin/java/lang/ClassFormatError) ||\n| | | | | ↳ | [java.lang.UnsupportedClassVersionError](#) |\n\nThrown when the Java Virtual Machine attempts to read a class file and determines that the major and minor version numbers in the file are not supported.\n\nSummary\n-------\n\n| Public constructors ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [UnsupportedClassVersionError](#UnsupportedClassVersionError())`()` Constructs a `UnsupportedClassVersionError` with no detail message. |\n| [UnsupportedClassVersionError](#UnsupportedClassVersionError(kotlin.String))`(`s:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Constructs a `UnsupportedClassVersionError` with the specified detail message. |\n\nPublic constructors\n-------------------\n\n### UnsupportedClassVersionError\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nUnsupportedClassVersionError()\n```\n\nConstructs a `UnsupportedClassVersionError` with no detail message. \n\n### UnsupportedClassVersionError\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nUnsupportedClassVersionError(s: String!)\n```\n\nConstructs a `UnsupportedClassVersionError` with the specified detail message.\n\n| Parameters ||\n|-----|--------------------------------------------------------------------------------------------------------|\n| `s` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: the detail message. |"]]