【发布时间】:2017-10-31 11:37:27
【问题描述】:
我现在刚刚将我的 android studio 更新到 3.0,但是当我尝试在我的项目上构建 apk 时,它显示以下错误:
项目依赖于 com.google.android.support:wearable:2.0.0,因此它还必须依赖于(作为提供的依赖项)com.google.android.wearable:wearable:2.0.0强>
我的 build.gradle 是这样的:
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile project(':lpd')
compile 'com.google.android.support:wearable:2.0.0-alpha2'
compile 'com.google.android.gms:play-services-wearable:9.4.0'
compile files('libs/zxing_2.3.0.jar')
compile(name: 'hwwearableservice-release', ext: 'aar')
compile 'com.google.android.gms:play-services-appindexing:9.4.0'
}
有什么问题吗?
【问题讨论】:
-
你能粘贴完整的堆栈跟踪吗
-
我改为编译'com.google.android.support:wearable:2.0.0',并添加提供的'com.google.wearable.support:wearable:2.0.0',就可以了现在
标签: android android-studio android-gradle-plugin android-studio-3.0