This question already has answers here:
All com.android.support libraries must use the exact same version specification
(54个回答)
在11个月前关闭。
我正在创建一个应用程序。但是Gradle文件出错。
请帮助我使依赖项的版本相同
(54个回答)
在11个月前关闭。
我正在创建一个应用程序。但是Gradle文件出错。
请帮助我使依赖项的版本相同
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
implementation 'com.android.support:support-annotations:28.0.0'
implementation 'org.apache.directory.studio:org.apache.commons.io:2.4'
implementation group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1'
implementation 'androidx.annotation:annotation:1.1.0'
}
最佳答案
确保所有来自com.android.support软件包的库都具有与compileSdkVersion相同的版本