title: Android You need to use a Theme.AppCompat theme (or descendant) with this activity
body: <p>I am building a 3rd party library which provides a UI. Many apps are using my library. But, some apps report a crash with the following exception.</p>
  <p>java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.</p>
  <p>My activities use android:theme=&quot;@style/Theme.AppCompat.DayNight&quot;. I think the apps using my library are not using a AppCompat theme. How to solve this issue with some apps using AppCompat theme and Some not? Is there a way to use a theme based on the Main app?</p>