java.lang.RuntimeException: Could not find any resource from reference ResName{testing.theo.robotutorial:style/Theme_AppCompat_Light_DarkActionBar} from style StyleData{name='AppTheme', parent='Theme_AppCompat_Light_DarkActionBar'} with theme null

Stack Overflow | Theo | 5 months ago
  1. 0

    RuntimeException using Roboelectric

    Stack Overflow | 5 months ago | Theo
    java.lang.RuntimeException: Could not find any resource from reference ResName{testing.theo.robotutorial:style/Theme_AppCompat_Light_DarkActionBar} from style StyleData{name='AppTheme', parent='Theme_AppCompat_Light_DarkActionBar'} with theme null
  2. 0

    Robolectric 3.1 and AppCompatTheme error

    GitHub | 5 months ago | awago
    java.lang.RuntimeException: Could not find any resource from reference ResName{com.***.***:style/Theme_AppCompat_Light_NoActionBar} from style StyleData{name='AppTheme', parent='Theme_AppCompat_Light_NoActionBar'} with theme null
  3. 0

    Robolectric 3.1 and AppCompatTheme error

    Stack Overflow | 5 months ago | Vitaliy Kosharskiy
    java.lang.RuntimeException: Could not find any resource from reference ResName{com.***.***:style/Theme_AppCompat_Light_NoActionBar} from style StyleData{name='AppTheme', parent='Theme_AppCompat_Light_NoActionBar'} with theme null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Issues when creating activity

    GitHub | 1 year ago | yamo21
    java.lang.RuntimeException: huh? ResName{com.apposit.vms.mobile:style/ActionBarStyle}

    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.lang.RuntimeException

      Could not find any resource from reference ResName{testing.theo.robotutorial:style/Theme_AppCompat_Light_DarkActionBar} from style StyleData{name='AppTheme', parent='Theme_AppCompat_Light_DarkActionBar'} with theme null

      at org.robolectric.shadows.ShadowAssetManager$StyleResolver.getParent()
    2. Roboelectric HTTP
      ShadowResources$ShadowTheme.obtainStyledAttributes
      1. org.robolectric.shadows.ShadowAssetManager$StyleResolver.getParent(ShadowAssetManager.java:520)
      2. org.robolectric.shadows.ShadowAssetManager$StyleResolver.getAttrValue(ShadowAssetManager.java:458)
      3. org.robolectric.shadows.ShadowResources.getOverlayedThemeValue(ShadowResources.java:296)
      4. org.robolectric.shadows.ShadowResources.findAttributeValue(ShadowResources.java:285)
      5. org.robolectric.shadows.ShadowResources.attrsToTypedArray(ShadowResources.java:190)
      6. org.robolectric.shadows.ShadowResources.access$000(ShadowResources.java:55)
      7. org.robolectric.shadows.ShadowResources$ShadowTheme.obtainStyledAttributes(ShadowResources.java:485)
      8. org.robolectric.shadows.ShadowResources$ShadowTheme.obtainStyledAttributes(ShadowResources.java:480)
      9. org.robolectric.shadows.ShadowResources$ShadowTheme.obtainStyledAttributes(ShadowResources.java:475)
      9 frames
    3. Android Platform
      ContextThemeWrapper.setTheme
      1. android.content.res.Resources$Theme.obtainStyledAttributes(Resources.java)
      2. android.app.Activity.onApplyThemeResource(Activity.java:3673)
      3. android.view.ContextThemeWrapper.initializeTheme(ContextThemeWrapper.java:140)
      4. android.view.ContextThemeWrapper.setTheme(ContextThemeWrapper.java:85)
      4 frames
    4. Android v7
      AppCompatActivity.setTheme
      1. android.support.v7.app.AppCompatActivity.setTheme(AppCompatActivity.java:90)
      1 frame
    5. Roboelectric HTTP
      CoreShadowsAdapter$1.setThemeFromManifest
      1. org.robolectric.shadows.ShadowActivity.setThemeFromManifest(ShadowActivity.java:85)
      2. org.robolectric.shadows.CoreShadowsAdapter$1.setThemeFromManifest(CoreShadowsAdapter.java:35)
      2 frames
    6. Roboelectric
      ActivityController$1.run
      1. org.robolectric.util.ActivityController.attach(ActivityController.java:58)
      2. org.robolectric.util.ActivityController$1.run(ActivityController.java:121)
      2 frames
    7. Roboelectric HTTP
      CoreShadowsAdapter$2.runPaused
      1. org.robolectric.shadows.ShadowLooper.runPaused(ShadowLooper.java:304)
      2. org.robolectric.shadows.CoreShadowsAdapter$2.runPaused(CoreShadowsAdapter.java:45)
      2 frames
    8. Roboelectric
      Robolectric.setupActivity
      1. org.robolectric.util.ActivityController.create(ActivityController.java:118)
      2. org.robolectric.util.ActivityController.create(ActivityController.java:129)
      3. org.robolectric.util.ActivityController.setup(ActivityController.java:210)
      4. org.robolectric.Robolectric.setupActivity(Robolectric.java:46)
      4 frames
    9. testing.theo.robotutorial
      MainActivityTest.setUp
      1. testing.theo.robotutorial.MainActivityTest.setUp(MainActivityTest.java:27)
      1 frame
    10. JUnit
      RunBefores.evaluate
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      4. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
      4 frames
    11. Roboelectric
      RobolectricTestRunner.runChild
      1. org.robolectric.RobolectricTestRunner$2.evaluate(RobolectricTestRunner.java:251)
      2. org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:188)
      3. org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:54)
      3 frames
    12. JUnit
      ParentRunner$2.evaluate
      1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      5 frames
    13. Roboelectric
      RobolectricTestRunner$1.evaluate
      1. org.robolectric.RobolectricTestRunner$1.evaluate(RobolectricTestRunner.java:152)
      1 frame
    14. JUnit
      JUnitCore.run
      1. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      2. org.junit.runner.JUnitCore.run(JUnitCore.java:137)
      2 frames
    15. IntelliJ junit4 module
      JUnit4IdeaTestRunner.startRunnerWithArgs
      1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
      1 frame
    16. IDEA
      AppMain.main
      1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
      2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
      3. com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
      3 frames