简体   繁体   English

android studio和最新sdk版本的API级别为28,appcompat-v7文件夹中的API级别为26.0.0-alpha1

[英]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.

相关问题 Gradle - 错误找不到 arguments 的方法 implementation() [com.android.support:appcompat-v7:26.0.0] - Gradle - Error Could not find method implementation() for arguments [com.android.support:appcompat-v7:26.0.0] 我应该针对哪个最小的Android SDK版本跳过appcompat-v7库? - For which min SDK Version of Android should I skip appcompat-v7 Library? 如何使用appcompat-v7与android API 19 - How to use appcompat-v7 with android API 19 Android存储库中缺少appcompat-v7源代码 - appcompat-v7 sources missing in the android repository 带有 appcompat-v7:28.0.0 的 Android ClassNotFoundException - Android ClassNotFoundException with appcompat-v7:28.0.0 Android Studio <Failed to resolve: com.android.support:appcompat-v7:28.0.0> - Android Studio <Failed to resolve: com.android.support:appcompat-v7:28.0.0> 无法解决:com.android.support:appcompat-v7:28.+,错误:包含名称为&#39;android.support.graphics.drawable&#39;的多个库 - Failed to resolve: com.android.support:appcompat-v7:28.+ , Error: more than one library with package name 'android.support.graphics.drawable' &#39;实施&#39;com.android.support:appcompat-v7:27.1.1&#39;问题 - 'Implementation 'com.android.support: appcompat-v7:27.1.1' issue 实施 'com.android.support:appcompat-v7:28.0.0' - 错误 - implementation 'com.android.support:appcompat-v7:28.0.0' - Error 什么是com.android.support:appcompat-v7? - What is com.android.support:appcompat-v7?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM