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?
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.
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.
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