So i'm trying to apply material theme to a newly created app. As per android documentation:
"To use material design in your Android apps, follow the guidelines described in the material design specification and use the new components and functionality available in Android 5.0 (API level 21)."
What i did was create a new project with:
minSdkVersion 23 targetSdkVersion 25
Then i went into the styles.xml and changed the style to:
<style name="AppTheme" parent="@android:style/Theme.Material">
Then i try to build on a emulated device with the following configuration:
nexus 5/api 25.
The app crashes with: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
I don't understand why? Haven't i met the conditions required? My minimum target sdk is right as per documentation, and the device i am building has the right sdk as well.
What am i missing?