use*_*041 6 android android-gradle-plugin wear-os
我用android studio创建了一个演示服装项目而没有触及任何东西.在build.Gradle中发生此错误,虽然我发现它让应用程序编译好奇.
项目依赖于com.google.android.support:wearable:2.0.2,因此它还必须依赖(作为提供的依赖项)com.google.android.wearable:wearable:2.0.2
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'
}
Run Code Online (Sandbox Code Playgroud)
只需添加
provided com.google.android.wearable:wearable:2.0.2
Run Code Online (Sandbox Code Playgroud)
你的依赖
编辑:
provided现在已弃用,请使用compileOnly如下:
compileOnly com.google.android.wearable:wearable:2.0.2
| 归档时间: |
|
| 查看次数: |
3270 次 |
| 最近记录: |