I don't have a separate folder called values v21

12,251

Solution 1

It was in older versions of Android Sudio. In Android Studio 1.0 you have to create by yourself. Check your SDK version update it to Android 5.0 (Api 21). And you will be good to go.

Maintain material design Compatibility to older version of Android by following this link. https://developer.android.com/training/material/compatibility.html

Cheers..

Solution 2

Create the values-v21 folder and create styles.xml Inside styles.xml choose Material Theme.

Share:
12,251
Salmaan
Author by

Salmaan

Working as a professional Android developer for more than 2.5 years responsible for the development and maintenance of applications aimed at a vast number of diverse Android devices. Primarily focusing on their integration with back-end services and connecting mobile application with external sensors to create IOT applications. Working along-side other engineers and developers working on different layers of the infrastructure.

Updated on August 21, 2022

Comments

  • Salmaan
    Salmaan over 1 year

    I am using android studio 1.0
    Trying to make material design app that is compatible with older versions of android too...
    Made new blank project, Added compile 'com.android.support:appcompat-v7:21.0.3' dependency to the gradle file
    Still no luck :/
    Anyone please help me out....

    • Simon
      Simon over 9 years
      Just create it. What's the problem?
    • Salmaan
      Salmaan over 9 years
      @Simon I can't add theme.material if i create the file manually
    • Srikanth P
      Srikanth P about 9 years
      Please refer this.. it solved my issue stackoverflow.com/questions/27553431/…
  • ch3tanz
    ch3tanz over 9 years
    Open your main.xml. select Graphical Layout. Look for Theme drop down menu. From there you can select Material Theme. If your sdk is updated. Theme.Material will be listed in that Theme drop down.
  • Salmaan
    Salmaan over 9 years
    which version of SDK should i have?
  • Salmaan
    Salmaan over 9 years
    Its still saying "cannot resolve symbol Theme.Material.Toolbar" :/