android - 无法解决 com.android.support :appcompat-v7:22 and com. android.support :recyclerview-v7:21. 1.2

标签 android rendering android-appcompat

我安装了 ALL ExtraSDK API 21-22 包括更改

compileSdkVersion 22 到 21buildToolsVersion '22.0.1' 到 21.1.2

我遇到了 API 22 的渲染问题。 我已尝试将版本更改为 <= 21,但仍然出现错误。

最佳答案

这些是您可以根据 API 需要添加到 build.gradle 中的正确版本。

API 24:

implementation 'com.android.support:appcompat-v7:24.2.1'
implementation 'com.android.support:recyclerview-v7:24.2.1'

API 25:

implementation 'com.android.support:appcompat-v7:25.4.0'
implementation 'com.android.support:recyclerview-v7:25.4.0'

API 26:

implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:recyclerview-v7:26.1.0'

API 27:

implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'

关于android - 无法解决 com.android.support :appcompat-v7:22 and com. android.support :recyclerview-v7:21. 1.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29284236/

相关文章:

opengl - 在Minecraft的多维数据集世界中,如何进行面部去除?

ios - 在 Swift 中生成图像

android - 我可以检查之前的 Activity 是哪个吗,Android?

ruby-on-rails - Rails HAML 引擎渲染

android - AppCompat Spinner 的 TextInputLayout 错误对齐问题

Xamarin Forms Android 错误 : Please install package 'Android Support Library'

android - 自定义 AppCompatButton drawableLeft?

Android 自动与自定义数据同步

android - fragment UI 在交易时卡住,但在从 fragment 返回堆栈中恢复相同 fragment 时工作顺利

java - 局部变量还没有初始化?