java.lang.RuntimeException: Unable to start activity ComponentInfo{com.webserviceCall/com.webserviceCall.WebservicecallActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x7f020058

Appcelerator JIRA | Allen Yeung | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Steps to reproduce: 1. Import the attached project 2. Build and run on device Expected result: The app should run fine. Actual Result: At app launch, there is an error: {code} [ERROR] : TiApplication: (main) [369,369] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.webserviceCall/com.webserviceCall.WebservicecallActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x7f020058; Titanium 3.3.0,2014/05/13 11:26,901a4ab [ERROR] : TiApplication: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.webserviceCall/com.webserviceCall.WebservicecallActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x7f020058 [ERROR] : TiApplication: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180) [ERROR] : TiApplication: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230) [ERROR] : TiApplication: at android.app.ActivityThread.access$600(ActivityThread.java:141) [ERROR] : TiApplication: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234) [ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:99) [ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:137) [ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5041) [ERROR] : TiApplication: at java.lang.reflect.Method.invokeNative(Native Method) [ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Method.java:511) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) [ERROR] : TiApplication: at dalvik.system.NativeStart.main(Native Method) [ERROR] : TiApplication: Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f020058 [ERROR] : TiApplication: at android.content.res.Resources.getValue(Resources.java:1014) [ERROR] : TiApplication: at android.content.res.Resources.getDrawable(Resources.java:659) [ERROR] : TiApplication: at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2832) [ERROR] : TiApplication: at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:2875) [ERROR] : TiApplication: at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:285) [ERROR] : TiApplication: at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:279) [ERROR] : TiApplication: at android.app.Activity.setContentView(Activity.java:1901) [ERROR] : TiApplication: at android.support.v7.app.ActionBarActivity.superSetContentView(ActionBarActivity.java:220) [ERROR] : TiApplication: at android.support.v7.app.ActionBarActivityDelegateICS.setContentView(ActionBarActivityDelegateICS.java:105) [ERROR] : TiApplication: at android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:81) [ERROR] : TiApplication: at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:526) [ERROR] : TiApplication: at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:144) [ERROR] : TiApplication: at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:97) [ERROR] : TiApplication: at android.app.Activity.performCreate(Activity.java:5104) [ERROR] : TiApplication: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080) [ERROR] : TiApplication: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144) [ERROR] : TiApplication: ... 11 more {code} Note that this works in 3.2.3.GA, but not in 3.3.0

    Appcelerator JIRA | 3 years ago | Allen Yeung
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.webserviceCall/com.webserviceCall.WebservicecallActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x7f020058
  2. 0

    Steps to reproduce: 1. Import the attached project 2. Build and run on device Expected result: The app should run fine. Actual Result: At app launch, there is an error: {code} [ERROR] : TiApplication: (main) [369,369] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.webserviceCall/com.webserviceCall.WebservicecallActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x7f020058; Titanium 3.3.0,2014/05/13 11:26,901a4ab [ERROR] : TiApplication: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.webserviceCall/com.webserviceCall.WebservicecallActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x7f020058 [ERROR] : TiApplication: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180) [ERROR] : TiApplication: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230) [ERROR] : TiApplication: at android.app.ActivityThread.access$600(ActivityThread.java:141) [ERROR] : TiApplication: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234) [ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:99) [ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:137) [ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5041) [ERROR] : TiApplication: at java.lang.reflect.Method.invokeNative(Native Method) [ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Method.java:511) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) [ERROR] : TiApplication: at dalvik.system.NativeStart.main(Native Method) [ERROR] : TiApplication: Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f020058 [ERROR] : TiApplication: at android.content.res.Resources.getValue(Resources.java:1014) [ERROR] : TiApplication: at android.content.res.Resources.getDrawable(Resources.java:659) [ERROR] : TiApplication: at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2832) [ERROR] : TiApplication: at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:2875) [ERROR] : TiApplication: at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:285) [ERROR] : TiApplication: at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:279) [ERROR] : TiApplication: at android.app.Activity.setContentView(Activity.java:1901) [ERROR] : TiApplication: at android.support.v7.app.ActionBarActivity.superSetContentView(ActionBarActivity.java:220) [ERROR] : TiApplication: at android.support.v7.app.ActionBarActivityDelegateICS.setContentView(ActionBarActivityDelegateICS.java:105) [ERROR] : TiApplication: at android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:81) [ERROR] : TiApplication: at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:526) [ERROR] : TiApplication: at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:144) [ERROR] : TiApplication: at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:97) [ERROR] : TiApplication: at android.app.Activity.performCreate(Activity.java:5104) [ERROR] : TiApplication: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080) [ERROR] : TiApplication: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144) [ERROR] : TiApplication: ... 11 more {code} Note that this works in 3.2.3.GA, but not in 3.3.0

    Appcelerator JIRA | 3 years ago | Allen Yeung
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.webserviceCall/com.webserviceCall.WebservicecallActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x7f020058
  3. 0

    android.content.res.Resources$NotFoundException: Resource ID #0x7f0200d1

    Stack Overflow | 4 weeks ago | Dnyanesh M
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.winsnit.societymanagement/com.winsnit.societymanagement.RegisterNSocietyMobNoVerifyActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x7f0200d1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    App crash when taking screenshot with Selendroid

    GitHub | 3 years ago | shuc
    android.content.res.Resources$NotFoundException: Resource ID #0x0
  6. 0

    App crash when taking screenshot

    GitHub | 3 years ago | shuc
    android.content.res.Resources$NotFoundException: Resource ID #0x0
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. android.content.res.Resources$NotFoundException

    Resource ID #0x7f020058

    at android.content.res.Resources.getValue()
  2. Android Platform
    Resources.getDrawable
    1. android.content.res.Resources.getValue(Resources.java:1014)
    2. android.content.res.Resources.getDrawable(Resources.java:659)
    2 frames
  3. Android
    PhoneWindow.setContentView
    1. com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2832)
    2. com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:2875)
    3. com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:285)
    4. com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:279)
    4 frames
  4. Android Platform
    Activity.setContentView
    1. android.app.Activity.setContentView(Activity.java:1901)
    1 frame
  5. Android v7
    ActionBarActivity.setContentView
    1. android.support.v7.app.ActionBarActivity.superSetContentView(ActionBarActivity.java:220)
    2. android.support.v7.app.ActionBarActivityDelegateICS.setContentView(ActionBarActivityDelegateICS.java:105)
    3. android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:81)
    3 frames
  6. org.appcelerator.titanium
    TiRootActivity.onCreate
    1. org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:526)
    2. org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:144)
    3. org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:97)
    3 frames
  7. Android Platform
    ActivityThread.main
    1. android.app.Activity.performCreate(Activity.java:5104)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
    5. android.app.ActivityThread.access$600(ActivityThread.java:141)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
    7. android.os.Handler.dispatchMessage(Handler.java:99)
    8. android.os.Looper.loop(Looper.java:137)
    9. android.app.ActivityThread.main(ActivityThread.java:5041)
    9 frames
  8. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:511)
    2 frames
  9. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
    2 frames
  10. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame