Android Wear 项目 Gradle 同步失败 [英] Android Wear Project Gradle Sync Fails
问题描述
我在 Android Studio 0.8 中创建了一个新项目,以便开始将 Android Wear 集成到我的一个应用中.我创建了一个新项目并包含 Wear 外形,但是当我尝试同步时,我得到:
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:
错误:找不到与 com.google.android.support:wearable:+ 匹配的任何版本.要求:win_control:wear: 未指定
Error:Could not find any version that matches com.google.android.support:wearable:+. Required by: win_control:wear:unspecified
我玩了一会儿 Gradle,现在我遇到了这些错误:
I played around with Gradle a bit, and now I get these errors:
错误:找不到:com.google.android.gms:play-services-wearable:+在项目结构"对话框中打开
打开文件
Error:Failed to find: com.google.android.gms:play-services-wearable:+ Open in Project Structure dialog
Open File
错误:找不到:com.google.android.support:wearable:+在项目结构"对话框中打开
打开文件
Error:Failed to find: com.google.android.support:wearable:+
Open in Project Structure dialog
Open File
推荐答案
遇到了同样的问题.打开您的 Android SDK 管理器,转到工具 -> 管理添加站点,然后添加您自己的存储库:
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
那么,
http://developer.android.com/training/wearables/apps/creating.html一个>
此外,请仔细检查您的 android sdk 管理器,确保您拥有所有最新更新,以及 android 支持存储库/库!
Also, double check your android sdk manager to make sure you have all the latest updates, as well as the android support repository/libraries!
这篇关于Android Wear 项目 Gradle 同步失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!