If you put in the Activity code it would be easier to find out, but most likely you are inheriting your Activity(s) from the class AppCompatActivity
, so the theme of that(s) Activity(s) needs to be Appcompat, to solve just go in values and then in styles.xml
(if not, go straight to AndroidManifest.xml
) and change the android:theme=""
for "Theme.AppCompat
" or for some compatible (This will change the theme of the whole project, if you want to change only one Activity can declare it on AndroidManifest.xml
and set the theme only for her, but this is unnecessary if you just want to resolve this error)