【问题标题】:Red-under line error on 'com.android.support:appcompat-v7:28.0.0''com.android.support:appcompat-v7:28.0.0' 上的红色下划线错误
【发布时间】:2018-11-13 08:13:24
【问题描述】:
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'

}


implementation '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' 的版本,那么错误仍然会和现在一样。

我已经尽力了,有什么办法可以解决这个问题吗? 提前致谢。

【问题讨论】:

    标签: android android-studio sdk android-support-library android-appcompat


    【解决方案1】:

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

    【讨论】:

    • 它是最新版本“26.0.0-alpha1”,如果我更改版本,则错误仍然不会被删除..我已经提到我尝试了所有可以完成的方法。
    • 您是否尝试删除该行代码并重新构建您的应用程序。它有时对我有用。
    • 是的,我已经尝试过,但它对我来说从来没有用过......它会产生新的错误。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-01-04
    • 2019-04-05
    • 1970-01-01
    • 2020-05-12
    相关资源
    最近更新 更多