Project Wear - attr 'android: windowSwipeToDismiss'

Does anyone else encounter a build error:

Error: (127, 21) A resource was not found that matches the specified name: attr. "Android: windowSwipeToDismiss

When building a new wear project? I went through the setup instructions for http://developer.android.com/preview/google-play-services-wear.html and installed new installation files for playback, but it seems to me that I'm missing something or have the wrong dependency, but can't track her.

an error occurs in values.xml

<style name="Theme.Wearable.Modal"> <item name="android:windowSwipeToDismiss">false</item> </style> 

I am creating a new project and even tried to delete and create another new project.

Thanks!

+6
source share
2 answers

This theme attribute has recently been defined in the Android API level 20. Make sure you have configured Android 20 or higher.

+6
source

Verify that build.gradle has a line compileSdkVersion 20 Synchronize your gradle and verify that this library can be installed.

0
source

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


All Articles