从另一个分支拉取后,我得到了这个android资源链接失败的aapt2异常。我确实将compile SDK和目标SDK版本更改为28。然后产生了另一个错误“在androidx和Supportv7模块中找到重复的类”。为了摆脱这一点,我们必须迁移到我不打算这样做的AndroidX。我想使用旧的支持库。我还强行解决了无效的库。还从build.gradle(app)的依赖版本中删除了+。
我确实强行解决了从依赖版本中删除+的问题
configurations.all {
resolutionStrategy {
force 'com.google.android.gms:play-services-vision-common:15.0.1'
force 'com.google.android.gms:play-services-base:15.0.1'
force 'com.google.android.gms:play-services-clearcut:15.0.1'
force 'com.google.android.gms:play-services-phenotype:15.0.1'
force 'com.google.android.gms:play-services-tasks:15.0.1'
force 'com.google.android.gms:play-services-flags:15.0.1'
force 'com.google.android.gms:play-services-auth-api-phone:15.0.1'
force 'com.google.android.gms:play-services-auth-base:15.0.1'
force 'com.facebook.android:facebook-login:[4,5)'
force 'com.android.support:support-annotations:27.0.2'
force 'com.android.support:support-core-utils:27.0.2'
force 'com.android.support:support-v4:27.0.2'
force 'com.android.support:appcompat-v7:27.0.2'
force 'com.android.support:cardview-v7:27.0.2'
force 'com.android.support:support-compat:27.0.2'
force 'com.android.support:support-annotations:27.0.2'
force 'com.appsflyer:af-android-sdk:4.10.2'
force 'com.google.firebase:firebase-analytics-impl:16.0.0'
force 'com.google.firebase:firebase-common:16.0.0'
force 'com.google.firebase:firebase-measurement-connector:16.0.0'
force 'com.google.firebase:firebase-iid:17.1.1'
force 'com.moengage:moe-push-firebase:2.0.03'
}
}
''' my dependencies in app build.gradle
dependencies {
implementation files('libs/acrcloud-android-sdk-1.5.9.jar')
implementation fileTree(include: ['*.jar'], dir: 'libs')
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.google.code.gson:gson:2.8.2'
/*implementation 'com.github.bumptech.glide:glide:4.9.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'*/
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'com.google.android.gms:play-services-vision:15.0.1'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'org.apache.commons:commons-io:1.3.2'
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'
// Dependency for Google Sign-In
implementation 'com.google.android.gms:play-services-auth:15.0.1'
// Dependencies for the REST API example
implementation 'com.google.api-client:google-api-client:1.22.0'
implementation 'com.google.api-client:google-api-client-android:1.22.0'
implementation 'com.google.apis:google-api-services-people:v1-rev139-1.22.0'
//Dependency for facebook login
implementation 'com.facebook.android:facebook-login:[4,5)'
implementation 'com.facebook.android:facebook-android-sdk:[4,5)'
implementation('com.crashlytics.sdk.android:crashlytics:2.9.6@aar') {
transitive = true;
}
implementation 'com.moengage:moe-android-sdk:9.4.05'
//Dependency for AppFlyer
implementation 'com.appsflyer:af-android-sdk:4+@aar'
implementation 'com.android.installreferrer:installreferrer:1.0'
//firebase
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.firebase:firebase-messaging:17.5.0'
implementation ('com.moengage:moe-android-sdk:9.4.05'){
exclude group: 'com.moengage', module: 'moe-push-firebase'
}
implementation 'com.moengage:moe-push-firebase:2.0.03'
implementation 'com.karumi:dexter:5.0.0'
implementation 'com.kevalpatel2106:ringtonepicker:1.2'
//autofill otp from message
implementation 'com.google.android.gms:play-services-base:17.0.0'
implementation 'com.google.android.gms:play-services-auth-api-phone:17.1.0'
}