Stay organized with collections
Save and categorize content based on your preferences.
NameNotFoundException
open class NameNotFoundException : AndroidException
This exception is thrown when a given package, application, or component name cannot be found.
Summary
Public constructors
NameNotFoundException
NameNotFoundException()
NameNotFoundException
NameNotFoundException(name: String!)
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,["# PackageManager.NameNotFoundException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nNameNotFoundException\n=====================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/content/pm/PackageManager.NameNotFoundException \"View this page in Java\") \n\n```\nopen class NameNotFoundException : AndroidException\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.Exception](../../../java/lang/Exception.html#) |||\n| | | ↳ | [android.util.AndroidException](../../util/AndroidException.html#) ||\n| | | | ↳ | [android.content.pm.PackageManager.NameNotFoundException](#) |\n\nThis exception is thrown when a given package, application, or component name cannot be found.\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [NameNotFoundException](#NameNotFoundException())`()` \u003cbr /\u003e |\n| [NameNotFoundException](#NameNotFoundException(kotlin.String))`(`name:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` \u003cbr /\u003e |\n\nPublic constructors\n-------------------\n\n### NameNotFoundException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nNameNotFoundException()\n``` \n\n### NameNotFoundException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nNameNotFoundException(name: String!)\n```"]]