[英]API level of 28 in android studio and latest sdk-version is 26.0.0-alpha1 in appcompat-v7 folder
I don't get any error while gradle build but my MainActivity shows error across every AppCompatActivity related terms. 我没有在gradle构建过程中得到任何错误,但是我的MainActivity在每个与AppCompatActivity相关的条款中都显示了错误。
I noticed at the location of android-sdk the appcompat-v7 folder has till 26.0.0-alpha-1 only but I'm using API 28 我在android-sdk的位置注意到appcompat-v7文件夹仅保留到26.0.0-alpha-1,但我使用的是API 28
Tried Every solution out there even tried reinstalling didn't help. 尝试那里的每个解决方案甚至尝试重新安装都无济于事。 Yes going to previous versions is helping but why I won't be able to use API 28.
是的,使用旧版本会有所帮助,但是为什么我将无法使用API 28。
add this line in gradle
在gradle中添加此行
implementation 'com.android.support:appcompat-v7:28.0.0'
and change project settings to latest 4.4 并将项目设置更改为最新的4.4
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.