下面是我的build.gradle,它有提到的问题。请帮帮我
//noinspection ExpiredTargetSdkVersion
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
defaultConfig {
applicationId "com.duosoft.duosoftticketingsystem"
minSdkVersion 21
targetSdkVersion 29
versionCode 1
versionName "1.0"
}
configurations.all {
resolutionStrategy.force 'com.android.support:support-v4:26.1.0' // the lib is old dependencies version;
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dexOptions {
javaMaxHeapSize "4g"
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation ('com.squareup.retrofit2:retrofit:2.1.0') {
exclude module: 'okhttp'
}
implementation 'com.android.support:support-v7:28.0.3'
implementation 'com.android.support:design:28.0.3'
implementation 'com.android.support:appcompat-v7:28.0.3'
implementation 'com.jakewharton:butterknife:7.0.1'
implementation 'com.mobsandgeeks:android-saripaar:2.0.3'
implementation 'com.google.code.gson:gson:2.6.2'
implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
implementation 'com.squareup.okhttp3:okhttp:3.4.1'
implementation 'com.android.support:cardview-v7:28.0.3'
implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
// compile 'com.squareup.picasso:picasso:2.5.2'
}
答案 0 :(得分:0)
发生这种情况是因为28.0.3
版的支持库不存在。
尝试使用:
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
注意:28.0.0
是支持库中的最新更新。将来所有的更新都将在androidx
库中。
您可以查看revision history和google maven repo以获得完整的发行版列表。
27.0.2
27.1.0
27.1.1
28.0.0-alpha1
28.0.0-alpha3
28.0.0-beta01
28.0.0-rc01
28.0.0-rc02
28.0.0