Error Compiling Xamarin Project

0

I just created a project in Xamarin, I did not add anything to the project, but when I try to compile it returns the error:

  

Java.Lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.

Can anyone help me?

    
asked by anonymous 28.03.2018 / 20:31

1 answer

0

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)

    
06.04.2018 / 23:55