java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.ahmed_samir.dialog/com.example.ahmed_samir.dialog.MainActivity}: android.content.res.Resources$NotFoundException: File from xml type layout resource ID #0x1020009

Stack Overflow | Ahmed Samir | 3 weeks ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    How to set appcompat windowBackground to textview

    Stack Overflow | 2 years ago | Sai Kiran
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example/com.example.MainActivity}: android.content.res.Resources$NotFoundException: File res/layout-v16/music_popup.xml from drawable resource ID #0x7f04001a at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387) at android.app.ActivityThread.access$800(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) Caused by: android.content.res.Resources$NotFoundException: File res/layout-v16/music_popup.xml from drawable resource ID #0x7f04001a at android.content.res.Resources.loadDrawableForCookie(Resources.java:2479) at android.content.res.Resources.loadDrawable(Resources.java:2381) at android.content.res.Resources.getDrawable(Resources.java:787) at android.content.Context.getDrawable(Context.java:403) at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:3630) at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:3677) at com.android.internal.policy.impl.PhoneWindow.getDecorView(PhoneWindow.java:1943) at android.support.v7.app.AppCompatDelegateImplV7.onCreate(AppCompatDelegateImplV7.java:148) at android.support.v7.app.AppCompatActivity.onCreate(AppCompatActivity.java:59) at com.example.MainActivity.onCreate(MainActivity.java:107) at android.app.Activity.performCreate(Activity.java:5990) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
  2. 0

    cannot fetch data from already created sqlite database in android studio.logcat shows the successfull opening of database.but can't fetch data

    Stack Overflow | 2 years ago | Mariyam
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.iyas.ex2/com.example.iyas.ex2.MyActivity}: android.content.res.Resources$NotFoundException: String resource ID #0x4
  3. 0

    Android : String resource not found while trying to get resource in List activity class

    Stack Overflow | 2 years ago | We are Borg
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.TestLunch/com.example.TestLunch.Activity.RestaurantList}: android.content.res.Resources$NotFoundException: String resource ID #0x7f04000e
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    inflate a view without XML in Android

    Stack Overflow | 2 years ago | akash kubavat
    java.lang.RuntimeException: Unable to start activity ComponentInfo{my.package.class}: android.content.res.Resources$NotFoundException: Resource ID #0x1d97b
  6. 0

    alert dialog in android with onclicklistener

    Stack Overflow | 3 weeks ago | Ahmed Samir
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.ahmed_samir.dialog/com.example.ahmed_samir.dialog.MainActivity}: android.content.res.Resources$NotFoundException: File from xml type layout resource ID #0x1020009
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.FileNotFoundException

    No message provided

    at android.content.res.AssetManager.openXmlAssetNative()
  2. Android Platform
    LayoutInflater.inflate
    1. android.content.res.AssetManager.openXmlAssetNative(Native Method)
    2. android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:485)
    3. android.content.res.Resources.loadXmlResourceParser(Resources.java:2678)
    4. android.content.res.Resources.loadXmlResourceParser(Resources.java:2651)
    5. android.content.res.Resources.getLayout(Resources.java:1082)
    6. android.view.LayoutInflater.inflate(LayoutInflater.java:412)
    6 frames
  3. Android
    AlertController.installContent
    1. com.android.internal.app.AlertController.setupView(AlertController.java:479)
    2. com.android.internal.app.AlertController.installContent(AlertController.java:236)
    2 frames
  4. Android Platform
    Dialog.show
    1. android.app.AlertDialog.onCreate(AlertDialog.java:356)
    2. android.app.Dialog.dispatchOnCreate(Dialog.java:373)
    3. android.app.Dialog.show(Dialog.java:274)
    3 frames
  5. com.example.ahmed_samir
    MainActivity.onCreate
    1. com.example.ahmed_samir.dialog.MainActivity.showDialog(MainActivity.java:65)
    2. com.example.ahmed_samir.dialog.MainActivity.onCreate(MainActivity.java:42)
    2 frames
  6. Android Platform
    ActivityThread.main
    1. android.app.Activity.performCreate(Activity.java:5990)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
    5. android.app.ActivityThread.access$800(ActivityThread.java:151)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
    7. android.os.Handler.dispatchMessage(Handler.java:102)
    8. android.os.Looper.loop(Looper.java:135)
    9. android.app.ActivityThread.main(ActivityThread.java:5254)
    9 frames
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  8. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
    2 frames