My wear app uses WearableListView.Item for a ListView, and it worked fine and compiled - but then I upgraded Android Studio, Gradle plugin, SDK tools etc etc, and now it won't compile.
My wear build.gradle contains:
compileSdkVersion 20
buildToolsVersion "21.1.2"
...
minSdkVersion 20
targetSdkVersion 20
...
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.android.support:wearable:+'
compile 'com.google.android.gms:play-services-wearable:6.5.+'
}
Now it says: Error:(141, 84) error: cannot find symbol class Item
Any help out there please?
That's because the API has changed. It now depend on RecyclerView
Here is a gist showing how to implement a WearableListView
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With