5

I tried to create a Android Wear project in the Android Studio. It can't seem to build the gradle file, all I get is following:

Error:A problem occurred configuring project ':wear'.
> Could not resolve all dependencies for configuration ':wear:_debugCompile'.
> Could not find any version that matches com.google.android.support:wearable:+.
 Required by:
     Browser:wear:unspecified
> Could not find any version that matches com.google.android.gms:play-services-wearable:+.
 Required by:
     Browser:wear:unspecified

Any suggestions?

user2410644
  • 3,861
  • 6
  • 39
  • 59

3 Answers3

23

This is a known issue. Hope it will be solved in the next days.

Now gradle should be able to solve the dependency and download the missing modules and the compilation should complete.

Georg Campana
  • 246
  • 2
  • 3
  • 1
    Not working for me. In short I'm pretty sure this gradle thing is crap. Of course coming from Eclipse I guess that's expected. Seriously though everything used to be so much easier. I have Google Play Services showing (v 18) in SDK manager. Still getting this error. – Fraggle Jul 17 '14 at 14:40
  • Could not agree more about gradle, @Fraggle, it is a massive productivity drain. In my case, I had a problem where I was running the SDK Manager from the command line, not realizing that it was a separate installation of Android vs. the one that is built in to Android Studio, hope that helps. – pents90 Jul 22 '14 at 16:21
  • 1
    One more gotcha: The SDK Manager menu may not appear until you un-focus and re-focus the Manager. Then you will have access to the Packages and Tools menu items. – Tom Redman Aug 13 '14 at 13:52
3

If all of these didn't work for you, check out the instructions at https://code.google.com/p/android/issues/detail?id=72454 For me, I was simply missing Google Repository from the extras section in the sdk manager.

add the repo at https://dl-ssl.google.com/android/repository/addon-play-services-5.xml and then make sure you've installed Google Repository. It should be available on the extras section of sdk manager

ekatz
  • 963
  • 3
  • 18
  • 38
  • The two missing libraries are downloaded as part of the Google Repository. The android gradle plugin looks in this local Maven repository to resolve these two dependencies. If you hover over Google Repository in the SDK Manager it will tell you location of the local Maven repository if you want to check whether the libraries are actually there. You need at least version 9 of the Google Repository to get the wearable library. – oenpelli Oct 27 '14 at 03:53
0

I had the same problem after installing AndroidStudio 0.8.9 in Ubuntu 14.10 recently. The solution was to go to SDK Manager and install Google Play Services and Google Repository. They do not seem to be installed by default.

Andrzej Pronobis
  • 33,828
  • 17
  • 76
  • 92