Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

import android.support.wearable cannot be resolved

I am trying to develop a simple Android Wear app but I am facing problem:

import android.support.wearable cannot be resolved

enter image description here

like image 504
Altaf Avatar asked Jul 01 '14 22:07

Altaf


1 Answers

Create a wearable module with Android Studio 4.0 and ended-up with the exact same issue! And it's 2020, 6 years later LOL.

Followed this guide to add the missing bits and pieces: https://developer.android.com/training/wearables/apps/creating

Basically my project builde.gradle didn't have those:

maven { url "https://maven.google.com" }

And this is module's gradle:

implementation 'com.google.android.support:wearable:2.8.0'

Once added, every checked properly.

PS: the maven is not even needed. Only missing implementation which clearly shows the wizard fails to create a valid module.

like image 130
3c71 Avatar answered Sep 23 '22 15:09

3c71