Stay organized with collections
Save and categorize content based on your preferences.
IncompatibleClassChangeError
open class IncompatibleClassChangeError : LinkageError
Known Direct Subclasses
AbstractMethodError |
Thrown when an application tries to call an abstract method.
|
IllegalAccessError |
Thrown if an application attempts to access or modify a field, or to call a method that it does not have access to.
|
InstantiationError |
Thrown when an application tries to use the Java new construct to instantiate an abstract class or an interface.
|
NoSuchFieldError |
Thrown if an application tries to access or modify a specified field of an object, and that object no longer has that field.
|
NoSuchMethodError |
Thrown if an application tries to call a specified method of a class (either static or instance), and that class no longer has a definition of that method.
|
|
Thrown when an incompatible class change has occurred to some class definition. The definition of some class, on which the currently executing method depends, has since changed.
Summary
Public constructors |
Constructs an IncompatibleClassChangeError with no detail message.
|
Constructs an IncompatibleClassChangeError with the specified detail message.
|
Public constructors
IncompatibleClassChangeError
IncompatibleClassChangeError()
Constructs an IncompatibleClassChangeError
with no detail message.
IncompatibleClassChangeError
IncompatibleClassChangeError(s: String!)
Constructs an IncompatibleClassChangeError
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# IncompatibleClassChangeError\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nIncompatibleClassChangeError\n============================\n\n```\nopen class IncompatibleClassChangeError : LinkageError\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.IncompatibleClassChangeError](#) |\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [AbstractMethodError](/reference/kotlin/java/lang/AbstractMethodError), [IllegalAccessError](/reference/kotlin/java/lang/IllegalAccessError), [InstantiationError](/reference/kotlin/java/lang/InstantiationError), [NoSuchFieldError](/reference/kotlin/java/lang/NoSuchFieldError), [NoSuchMethodError](/reference/kotlin/java/lang/NoSuchMethodError) |------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------| | [AbstractMethodError](/reference/kotlin/java/lang/AbstractMethodError) | Thrown when an application tries to call an abstract method. | | [IllegalAccessError](/reference/kotlin/java/lang/IllegalAccessError) | Thrown if an application attempts to access or modify a field, or to call a method that it does not have access to. | | [InstantiationError](/reference/kotlin/java/lang/InstantiationError) | Thrown when an application tries to use the Java `new` construct to instantiate an abstract class or an interface. | | [NoSuchFieldError](/reference/kotlin/java/lang/NoSuchFieldError) | Thrown if an application tries to access or modify a specified field of an object, and that object no longer has that field. | | [NoSuchMethodError](/reference/kotlin/java/lang/NoSuchMethodError) | Thrown if an application tries to call a specified method of a class (either static or instance), and that class no longer has a definition of that method. | |\n\nThrown when an incompatible class change has occurred to some class definition. The definition of some class, on which the currently executing method depends, has since changed.\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [IncompatibleClassChangeError](#IncompatibleClassChangeError())`()` Constructs an `IncompatibleClassChangeError` with no detail message. |\n| [IncompatibleClassChangeError](#IncompatibleClassChangeError(kotlin.String))`(`s:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Constructs an `IncompatibleClassChangeError` with the specified detail message. |\n\nPublic constructors\n-------------------\n\n### IncompatibleClassChangeError\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nIncompatibleClassChangeError()\n```\n\nConstructs an `IncompatibleClassChangeError` with no detail message. \n\n### IncompatibleClassChangeError\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nIncompatibleClassChangeError(s: String!)\n```\n\nConstructs an `IncompatibleClassChangeError` 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. |"]]