首页 > 解决方案 > 'com.android.support:appcompat-v7:28.0.0' 出现红色下划线错误

问题描述

dependencies {

implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation "com.android.support:support-core-utils:28.0.0"
implementation 'com.google.firebase:firebase-auth:16.0.5'
implementation 'com.google.firebase:firebase-invites:16.0.5'
implementation 'com.google.firebase:firebase-database:16.0.5'
implementation 'com.google.firebase:firebase-core:16.0.5'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
implementation 'com.jakewharton:butterknife:8.8.1'
implementation 'com.google.code.gson:gson:2.8.5'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
implementation 'com.google.android.gms:play-services-ads:16.0.0'
implementation 'com.firebase:firebase-jobdispagradle -q dependencies your-app-project:dependenciestcher:0.8.5'
implementation 'com.android.support:cardview-v7:28.0.0'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.ss.bannerslider:bannerslider:2.0.0'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.appbrain:appbrain-sdk:+@aar'
// implementation files('E:/OFFICIAL WORK/Android Projects/EarningStation/libs/mobair-sdk.jar')
implementation 'com.ironsource.sdk:mediationsdk:6.7.12@jar'



implementation 'com.github.mobfox.MobFox-Android-SDK-Core:MobFox-Android-SDK-Core:3.6.2'
implementation 'com.android.volley:volley:1.1.0'
implementation 'com.github.mobfox:AndroidVideoCache:v2.7.1'
implementation 'com.github.mobfox.MobFox-Android-SDK-Core:MobFox-Android-SDK-AdMob-Adapter:3.6.2'

}

实现“com.android.support:appcompat-v7:28.0.0”时出现红色下划线错误

我知道这个问题被问了很多次,但我没有发现这些有帮助。

我在 android studio 中的 API 级别为 28,最新的 sdk 版本在 appcompat-v7 中为 26.0.0-alpha1。

如果我更改 'com.android.support:appcompat-v7:28.0.0' 的版本,那么错误仍然与现在相同。

我尽我所能,有什么办法可以解决这个问题吗?提前致谢。

标签: androidandroid-studiosdkandroid-support-libraryandroid-appcompat

解决方案


您可以使用以前的版本 v7:27.0.1。


推荐阅读