Placing the Activity code would make it easier to figure out, but you're probably inheriting your Activity (s) from the AppCompatActivity
class, so the theme for that Activity (s) needs to be AppCompat, to solve it is only to go in values and then in styles.xml
(if it does not, go directly in the AndroidManifest.xml
) and change the android:theme=""
to " Theme.AppCompat
" or to some compatible one (This will change the theme of the whole project, if you want to change only an Activity you can declare it in AndroidManifest.xml
and set the theme only for it, but this is unnecessary if you just want to solve this error)