android.view.InflateException: XML file build/intermediates/res/debug/layout/main_activity.xml line #-1 (sorry, not yet implemented): Error inflating class com.rey.material.widget.FloatingActionButton

GitHub | ChrisZou | 1 year ago
  1. 0

    Cannot find resource under res/xml directory

    GitHub | 1 year ago | ChrisZou
    android.view.InflateException: XML file build/intermediates/res/debug/layout/main_activity.xml line #-1 (sorry, not yet implemented): Error inflating class com.rey.material.widget.FloatingActionButton
  2. 0

    Could not find any resource from reference ResName{com.company.app:style/Theme_AppCompat_Light_NoActionBar}

    GitHub | 2 years ago | loeschg
    java.lang.RuntimeException: Could not find any resource from reference ResName{com.company.app:style/Theme_AppCompat_Light_NoActionBar} from style StyleData{name='AppTheme_Base', parent='Theme_AppCompat_Light_NoActionBar'} with theme null
  3. 0

    "<fraction..." item is not supported

    GitHub | 3 years ago | menny
    java.lang.RuntimeException: huh? ResName{com.example.ui:fraction/image_size_fragment}
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android Lolipop Appcompat problems running with Robolectric

    Stack Overflow | 2 years ago | fada21
    java.lang.RuntimeException: Could not find any resource from reference ResName{com.fada21.android.bootstrap:style/Theme_AppCompat_Light_NoActionBar} from style StyleData{name='AppTheme', parent='Theme_AppCompat_Light_NoActionBar'} with theme null
  6. 0

    Cannot run Robolectric tests with Gradle and Android Studio - StyleData not found

    Stack Overflow | 3 years ago | MAGx2
    java.lang.RuntimeException: huh? can't find parent for StyleData{name='AppTheme', parent='Theme_AppCompat_Light_DarkActionBar'}

    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

      huh? ResName{com.mydomain.myapp:xml/fab_icon_states}

      at org.robolectric.shadows.Converter.convertAndFill()
    2. Roboelectric HTTP
      ShadowResources$ShadowTheme.obtainStyledAttributes
      1. org.robolectric.shadows.Converter.convertAndFill(Converter.java:99)
      2. org.robolectric.shadows.Converter.convertAndFill(Converter.java:50)
      3. org.robolectric.shadows.ShadowResources.createTypedArray(ShadowResources.java:232)
      4. org.robolectric.shadows.ShadowResources.attrsToTypedArray(ShadowResources.java:209)
      5. org.robolectric.shadows.ShadowResources.access$000(ShadowResources.java:55)
      6. org.robolectric.shadows.ShadowResources$ShadowTheme.obtainStyledAttributes(ShadowResources.java:485)
      6 frames
    3. Android Platform
      Context.obtainStyledAttributes
      1. android.content.res.Resources$Theme.obtainStyledAttributes(Resources.java)
      2. android.content.Context.obtainStyledAttributes(Context.java:472)
      2 frames
    4. com.rey.material
      FloatingActionButton.<init>
      1. com.rey.material.drawable.LineMorphingDrawable$Builder.<init>(LineMorphingDrawable.java:409)
      2. com.rey.material.drawable.LineMorphingDrawable$Builder.<init>(LineMorphingDrawable.java:405)
      3. com.rey.material.widget.FloatingActionButton.applyStyle(FloatingActionButton.java:111)
      4. com.rey.material.widget.FloatingActionButton.init(FloatingActionButton.java:82)
      5. com.rey.material.widget.FloatingActionButton.<init>(FloatingActionButton.java:64)
      5 frames
    5. Android Platform
      LayoutInflater.inflate
      1. android.view.LayoutInflater.createView(LayoutInflater.java:607)
      2. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
      3. android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
      4. android.view.LayoutInflater.rInflate(LayoutInflater.java:809)
      5. android.view.LayoutInflater.rInflate(LayoutInflater.java:809)
      6. android.view.LayoutInflater.inflate(LayoutInflater.java:504)
      7. android.view.LayoutInflater.inflate(LayoutInflater.java:414)
      8. android.view.LayoutInflater.inflate(LayoutInflater.java:365)
      8 frames
    6. Android v7
      AppCompatActivity.setContentView
      1. android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:249)
      2. android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:106)
      2 frames
    7. com.mydomain.myapp
      MainActivity_.onCreate
      1. com.mydomain.myapp.activities.MainActivity_.setContentView(MainActivity_.java:56)
      2. com.mydomain.myapp.activities.MainActivity_.onCreate(MainActivity_.java:47)
      2 frames
    8. Android Platform
      Activity.performCreate
      1. android.app.Activity.performCreate(Activity.java:5933)
      1 frame
    9. Roboelectric
      ActivityController$1.run
      1. org.robolectric.util.ReflectionHelpers.callInstanceMethod(ReflectionHelpers.java:195)
      2. org.robolectric.util.ActivityController$1.run(ActivityController.java:122)
      2 frames
    10. Roboelectric HTTP
      CoreShadowsAdapter$2.runPaused
      1. org.robolectric.shadows.ShadowLooper.runPaused(ShadowLooper.java:305)
      2. org.robolectric.shadows.CoreShadowsAdapter$2.runPaused(CoreShadowsAdapter.java:45)
      2 frames
    11. 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
    12. com.mydomain.myapp
      MainActivityTest.setup
      1. com.mydomain.myapp.MainActivityTest.setup(MainActivityTest.java:22)
      1 frame
    13. 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
    14. Roboelectric
      RobolectricTestRunner.runChild
      1. org.robolectric.RobolectricTestRunner$2.evaluate(RobolectricTestRunner.java:245)
      2. org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:185)
      3. org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:54)
      3 frames
    15. 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
    16. Roboelectric
      RobolectricTestRunner$1.evaluate
      1. org.robolectric.RobolectricTestRunner$1.evaluate(RobolectricTestRunner.java:149)
      1 frame
    17. JUnit
      ParentRunner.run
      1. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      1 frame
    18. org.gradle.api
      SuiteTestClassProcessor.processTestClass
      1. org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:86)
      2. org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:49)
      3. org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:64)
      4. org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:50)
      4 frames
    19. Gradle Core
      ProxyDispatchAdapter$DispatchingInvocationHandler.invoke
      1. org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
      2. org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
      3. org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
      4. org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
      4 frames
    20. com.sun.proxy
      $Proxy2.processTestClass
      1. com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
      1 frame
    21. org.gradle.api
      TestWorker.processTestClass
      1. org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:106)
      1 frame
    22. Gradle Core
      ReflectionDispatch.dispatch
      1. org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
      2. org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
      2 frames
    23. org.gradle.messaging
      MessageHub$Handler.run
      1. org.gradle.messaging.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:360)
      1 frame
    24. Gradle Core
      StoppableExecutorImpl$1.run
      1. org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
      2. org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
      2 frames
    25. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames