java.lang.RuntimeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • protect resources when using shrinkResources
    via Stack Overflow by ligi
    ,
  • GitHub comment 13#126917180
    via GitHub by fgiacomelli
    ,
    • 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 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 from xml type layout resource ID #0x1020009 at android.content.res.Resources.loadXmlResourceParser(Resources.java:2696) at android.content.res.Resources.loadXmlResourceParser(Resources.java:2651) at android.content.res.Resources.getLayout(Resources.java:1082) at android.view.LayoutInflater.inflate(LayoutInflater.java:412) at com.android.internal.app.AlertController.setupView(AlertController.java:479) at com.android.internal.app.AlertController.installContent(AlertController.java:236) at android.app.AlertDialog.onCreate(AlertDialog.java:356) at android.app.Dialog.dispatchOnCreate(Dialog.java:373) at android.app.Dialog.show(Dialog.java:274) at com.example.ahmed_samir.dialog.MainActivity.showDialog(MainActivity.java:65) at com.example.ahmed_samir.dialog.MainActivity.onCreate(MainActivity.java:42) at android.app.Activity.performCreate(Activity.java:5990) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278) ... 10 more Caused by: java.io.FileNotFoundException at android.content.res.AssetManager.openXmlAssetNative(Native Method) at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:485) at android.content.res.Resources.loadXmlResourceParser(Resources.java:2678) ... 23 more

    Users with the same issue

    Unknown visitor1 times, last one,
    filipebatista
    1 times, last one,
    Agócs Tamás
    5 times, last one,
    ajinkya_w
    4 times, last one,
    danleyb2Interintel
    1 times, last one,
    13 more bugmates