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

Solutions on the web28211

  • 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
  • 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
  • Could not find any resource from reference ResName{com.myapp:style/Theme_AppCompat_Light_NoActionBar} from style StyleData{name='AppTheme_Base', parent='Theme_AppCompat_Light_NoActionBar'} with theme null
  • Stack trace

    • 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 at org.robolectric.shadows.ShadowAssetManager$StyleResolver.getParent(ShadowAssetManager.java:525) at org.robolectric.shadows.ShadowAssetManager$StyleResolver.getAttrValue(ShadowAssetManager.java:463) at org.robolectric.shadows.ShadowAssetManager.getOverlayedThemeValue(ShadowAssetManager.java:748) at org.robolectric.shadows.ShadowAssetManager.findAttributeValue(ShadowAssetManager.java:737) at org.robolectric.shadows.ShadowAssetManager.buildAttributes(ShadowAssetManager.java:683) at org.robolectric.shadows.ShadowResources.attrsToTypedArray(ShadowResources.java:103) at org.robolectric.shadows.ShadowResources.access$000(ShadowResources.java:52) at org.robolectric.shadows.ShadowResources$ShadowTheme.obtainStyledAttributes(ShadowResources.java:270) at org.robolectric.shadows.ShadowResources$ShadowTheme.obtainStyledAttributes(ShadowResources.java:265) at org.robolectric.shadows.ShadowResources$ShadowTheme.obtainStyledAttributes(ShadowResources.java:260) at android.content.res.Resources$Theme.obtainStyledAttributes(Resources.java) at android.app.Activity.onApplyThemeResource(Activity.java:3727) at android.view.ContextThemeWrapper.initializeTheme(ContextThemeWrapper.java:150) at android.view.ContextThemeWrapper.setTheme(ContextThemeWrapper.java:94) at android.support.v7.app.AppCompatActivity.setTheme(AppCompatActivity.java:90) at org.robolectric.shadows.ShadowActivity.setThemeFromManifest(ShadowActivity.java:94) at org.robolectric.shadows.CoreShadowsAdapter$1.setThemeFromManifest(CoreShadowsAdapter.java:30) at org.robolectric.util.ActivityController.attach(ActivityController.java:70) at org.robolectric.util.ActivityController.of(ActivityController.java:32) at org.robolectric.Robolectric.buildActivity(Robolectric.java:82) at org.robolectric.Robolectric.buildActivity(Robolectric.java:78) at org.robolectric.Robolectric.setupActivity(Robolectric.java:86)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.