The project depends on com.google.android.support:wearable:2.0.2

I created a demo project with android studio without touching anything. This error is thrown in build.Gradle, although I'm curious that it allows the application to be compiled.

The project depends on com.google.android.support:wearable:2.0.2, so it should also depend (as a dependency provided) on com.google.android.wearable: wearable: 2.0.2

enter image description here

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])

    compile 'com.google.android.support:wearable:1.4.0'
    compile 'com.google.android.gms:play-services-wearable:9.4.0'
}

      

+3


source to share


1 answer


Just add

provided com.google.android.wearable:wearable:2.0.2

      

to your addictions



EDIT:

provided

is now deprecated, use compileOnly

like this:

compileOnly com.google.android.wearable:wearable:2.0.2

+7


source







All Articles