android:Theme.Material requires API level 21, and therefore it is cleared so that your minSDKVersion below 21.
If you really want to develop an application for API 21, then declare android:minSDKVersion=21 .
And if in case you want to ensure compatibility with a lower version, you need to use the support library , which is usually known as the AppCompat library.
You can access the above attributes using AppCompat:
<item name="colorPrimary">@color/primary</item> <item name="colorPrimaryDark">@color/primary_dark</item>
source share