Home > other >  How to solve below?
How to solve below?

Time:09-18

How to solve below? Java. Lang. An IllegalStateException: You need to use a Theme AppCompat Theme (or descendant) with this activity.

CodePudding user response:

Newspaper is the cause of the fault activity class inherits the compatible package, such as ActionBarActivity, it comes from android. Support. V7. App. ActionBarActivity
Method one: change the class of inheritance compatible package to directly inherited the Activity
Method 2: cooperate with AppCompat theme use
  • Related