user2410644
user2410644

Reputation: 3891

Building gradle for Wear App failed

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?

Upvotes: 5

Views: 5906

Answers (3)

Andrzej Pronobis
Andrzej Pronobis

Reputation: 36076

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.

Upvotes: 0

ekatz
ekatz

Reputation: 973

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

Upvotes: 3

Georg Campana
Georg Campana

Reputation: 246

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.

Upvotes: 23

Related Questions