Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wear project - attr 'android:windowSwipeToDismiss'

Has anyone else run into the build error:

Error:(127, 21) No resource found that matches the given name: attr 'android:windowSwipeToDismiss'.

When building the new wear project? I'm past the setup instructions http://developer.android.com/preview/google-play-services-wear.html and have the new play services sdks installed, but I feel like I'm missing something or have a wrong dependency but can't track it down.

the error occurs in values.xml

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

I'm creating a new project and have even tried to delete and create another new project.

Thanks!

like image 220
glinskik Avatar asked Jun 28 '14 23:06

glinskik


Video Answer


1 Answers

This theme attribute is newly defined in Android API Level 20. Be sure you're targeting android-20 or higher.

like image 70
Mark Renouf Avatar answered Oct 10 '22 23:10

Mark Renouf