I do not have a separate folder named v21

I am using android studio 1.0
Attempting to make a material creation application that is compatible with older versions of Android as well ... A new empty project was created, a dependency was added compile 'com.android.support:appcompat-v7:21.0.3'to the gradle file.
Still no luck: /
Someone please help me ... .

+4
source share
3 answers

This was in older versions of Android Sudio. In Android Studio 1.0, you have to create it yourself. Check the SDK version on Android 5.0 (Api 21). And you will be fine.

Android, . https://developer.android.com/training/material/compatibility.html

.

+2

values-v21 styles.xml styles.xml " ".

+4

, Android,

'com.android.support:appcompat-v7:21.+'

. ,

http://android-developers.blogspot.com.br/2014/10/appcompat-v21-material-design-for-pre.html

- , , , "ActioBarActivities". , .

, , "values-21" "style.xml", Android Lollipop. android:Theme.Material , Android 5.0, , .

0

Source: https://habr.com/ru/post/1568989/


All Articles