android - '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' 的版本,那么错误仍然与现在相同。
我尽我所能,有什么办法可以解决这个问题吗?提前致谢。
解决方案
您可以使用以前的版本 v7:27.0.1。
推荐阅读
- wordpress - 从 ACF 中继器初始化 Twig 中的 CPT TimberPosts
- c++ - 朋友函数无法访问私有数据成员(C++)
- javascript - 我将如何加密整个用户输入?
- f# - 离散场的笛卡尔积上的 FsCheck 生成器
- jquery - 为什么 Fancybox 不能与 SpriteSpin 一起使用
- ember.js - 如何使用 ember-highcharts 动态更新系列数据
- wordpress - 有什么方法可以跟踪联系表单提交的速度/效率吗?
- php - 将数组的每个值组合到php中的单个数组
- android-studio - 如何在“主”页面上的 RecyclerView“列表”上添加 ImageView?
- java - 从当前 COMLateBindingObject 获取 ProcessID