I created a new project in Android Studio 0.8 in order to start integrating Android Wear into one of my apps. I create a new project and include the Wear form factor, but when I try to sync I get:
Error:Could not find any version that matches com.google.android.support:wearable:+. Required by: win_control:wear:unspecified
EDIT: I played around with Gradle a bit, and now I get these errors:
Error:Failed to find: com.google.android.gms:play-services-wearable:+ Open in Project Structure dialog
Open FileError:Failed to find: com.google.android.support:wearable:+ Open in Project Structure dialog
Open File
Missing Files: There is a chance of Gradle files getting misplaced. This can be solved by re-installing the required files. Using the Proxy Servers: There was an issue with the syncing of the Gradle when Proxy Servers were turned on. Disabling it can help.
Open your gradle. properties file in Android Studio. Restart Android Studio for your changes to take effect. Click Sync Project with Gradle Files to sync your project.
Had the same problem. Open up your Android SDK manager, go to tools -> manage add on sites, and add your own repo:
https://dl-ssl.google.com/android/repository/addon-play-services-5.xml
I finally found these helpful guides. There are lots of broken links and bad info floating around, but these should work:
http://developer.android.com/preview/google-play-services-wear.html
then,
http://developer.android.com/training/wearables/apps/creating.html
Also, double check your android sdk manager to make sure you have all the latest updates, as well as the android support repository/libraries!
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