未能解决com.android.support:appcompat-v7:22和com.android.support:recyclerview-v7:21.1.2 [英] failed to resolve com.android.support:appcompat-v7:22 and com.android.support:recyclerview-v7:21.1.2
本文介绍了未能解决com.android.support:appcompat-v7:22和com.android.support:recyclerview-v7:21.1.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我安装了所有多余和SDK API 21-22包括改变 compileSdkVersion 22至21日 buildToolsVersion '22 .0.1到21.1.2,但错误。
I installed ALL Extra and SDK API 21-22 including changed compileSdkVersion 22 to 21 buildToolsVersion '22.0.1' to 21.1.2 but error.
和渲染问题的API 22和我换到< = 21仍
And Rendering Problems for API 22 and I changed to <= 21 it still.
推荐答案
根据API的需求,这些都是可以添加在你的build.gradle正确的版本。
These are the correct version that you can add in your build.gradle according to the API needs.
API 21:
compile 'com.android.support:appcompat-v7:21.0.1'
compile 'com.android.support:recyclerview-v7:21.0.1'
或
compile 'com.android.support:appcompat-v7:21.0.2'
compile 'com.android.support:recyclerview-v7:21.0.2'
或
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.android.support:recyclerview-v7:21.0.3'
API 22:
compile 'com.android.support:appcompat-v7:22.0.0'
compile 'com.android.support:recyclerview-v7:22.0.0'
这篇关于未能解决com.android.support:appcompat-v7:22和com.android.support:recyclerview-v7:21.1.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文