Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 644
user2410644 Avatar asked Jun 27 '14 14:06

user2410644


People also ask

How do I resolve gradle Project Sync failed?

Then open Android Studio and go to File > Settings > Build, Execution and Deployment > Gradle > Use Gradle from > Set the path of the downloaded Gradle. Step 4. Now try syncing the Gradle again and check if the error still persists.


1 Answers

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

  • open the Android SDK Manager
  • Go to the menu Tools->Manage Add-On Sites and add this url to the user defined sites: https://dl-ssl.google.com/android/repository/addon-play-services-5.xml (note: the menu is the menu of the SDK manager, not Android Studio)
  • Reload and update the Google Play services to the new versions.

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

like image 79
Georg Campana Avatar answered Oct 17 '22 13:10

Georg Campana