简体   繁体   English

Android支持库规范

[英]Android Support Library Specification

Recently I've noticed an error in my gradle files for both mobile and wear, that says the following. 最近,我注意到我的gradle文件中的移动设备和穿戴设备都有错误,提示如下。

错误信息

I've tried changing to the different versions but it is still showing an error no matter what version I change it to. 我尝试更改为其他版本,但是无论我将其更改为哪个版本,它仍然显示错误。 Can someone give me some guidance on solving this please. 有人可以给我一些解决此问题的指导。 My gradle is as follows, 我的成绩如下

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.android.support:wearable:2.0.0'
compile 'com.google.android.gms:play-services-wearable:10.2.0'
compile 'com.android.support:support-compat:25.3.0'
provided 'com.google.android.wearable:wearable:2.0.0'
compile 'com.android.support:design:25.3.0'
compile 'com.github.PhilJay:MPAndroidChart:v3.0.1'
compile 'com.jakewharton:butterknife:8.5.1'
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
compile 'com.itextpdf:itextg:5.5.10'
compile 'io.reactivex.rxjava2:rxjava:2.0.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'

} }

The error is actually at compile 'com.android.support:support-compat:25.3.0'. 该错误实际上是在编译'com.android.support:support-compat:25.3.0'处产生的。 I'm assuming that is because this is the first one on the list it come across. 我假设这是因为这是它遇到的列表中的第一个。

compile 'com.google.android.support:wearable:2.0.0' 编译'com.google.android.support:wearable:2.0.0'

compile 'com.android.support:support-compat:25.3.0' 编译'com.android.support:support-compat:25.3.0'

these are conflicting with each other you have to select one from these two. 这些相互冲突,您必须从这两个中选择一个。

The issue is with these together "com.google.android.support" and "com.android.support" 这些问题与“ com.google.android.support”和“ com.android.support”一起出现

will be fixed in the upcoming release from google. 将在Google即将发布的版本中修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM