# NoSuchMethodException

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

# NoSuchMethodException

```
open class NoSuchMethodException : ReflectiveOperationException
```

|---|---|---|---|--------------------------------------------------------------------------------------------------------------------|
| [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)                                |||
|   |   | ↳ | [java.lang.ReflectiveOperationException](https://developer.android.com/reference/kotlin/java/lang/ReflectiveOperationException) ||
|   |   |   | ↳ | [java.lang.NoSuchMethodException](https://developer.android.com/reference/kotlin/java/lang/NoSuchMethodException#) |

Thrown when a particular method cannot be found.

## Summary

|                                                                                                                                          Public constructors                                                                                                                                          ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [NoSuchMethodException](https://developer.android.com/reference/kotlin/java/lang/NoSuchMethodException#NoSuchMethodException())`()` Constructs a`NoSuchMethodException`without a detail message.                                                                                                   |
| [NoSuchMethodException](https://developer.android.com/reference/kotlin/java/lang/NoSuchMethodException#NoSuchMethodException(kotlin.String))`(`s:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Constructs a`NoSuchMethodException`with a detail message. |

## Public constructors

### NoSuchMethodException

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

```
NoSuchMethodException()
```

Constructs a`NoSuchMethodException`without a detail message.  

### NoSuchMethodException

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

```
NoSuchMethodException(s: String!)
```

Constructs a`NoSuchMethodException`with a detail message.

|                                                 Parameters                                                 ||
|-----|-------------------------------------------------------------------------------------------------------|
| `s` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!:the detail message. |