Android 不相容梯度依赖
我在我的应用程序中的android库的build.gradle文件中看到一条错误消息。依赖项块如下所示:Android 不相容梯度依赖,android,android-gradle-plugin,Android,Android Gradle Plugin,我在我的应用程序中的android库的build.gradle文件中看到一条错误消息。依赖项块如下所示: dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:27.0.2' testImplementation 'junit:junit:4.12' androidTestImp
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
compile 'de.hdodenhof:circleimageview:2.2.0'
compile 'com.android.support:recyclerview-v7:27.0.2'
compile 'com.beloo.widget:ChipsLayoutManager:0.3.7@aar'
}
我看到的信息是:
all com.android.support libraries must use the exact same version specification
显然,版本27.0.2和21.0.3
Found versions 27.0.2, 21.0.3. Examples include com.android.support:animated-vector-drawable:27.0.2 and com.android.support:support-v4:21.0.3 less... (⌘F1)
覆盖旧库
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
compile 'de.hdodenhof:circleimageview:2.2.0'
compile 'com.android.support:recyclerview-v7:27.0.2'
compile 'com.beloo.widget:ChipsLayoutManager:0.3.7@aar'
//overwrite old LIB
compile 'com.android.support:support-v4:27.0.2'
}
我看到了,它起作用了,但是还不允许我接受答案,我必须等两分钟