2017-07-19 57 views
0

我有一個exceptiuon我想在SDK水平23工作,所以我depedencies之一,我得到一個錯誤:程序兼容性-V7:23.1.0和mediarouter-V7:22.0.0

with: compile 'com.android.support:appcompat-v7:23.0.0' 
All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 23.0.0, 22.0.0. Examples include com.android.support:appcompat-v7:23.0.0 and com.android.support:mediarouter-v7:22.0.0 less... (Ctrl+F1) There are some combinations of libraries, or tools and libraries, that 
> are incompatible, or can lead to bugs. One such incompatibility is 
> compiling with a version of the Android support libraries that is not 
> the latest version (or in particular, a version lower than your 
> targetSdkVersion.) 

而且這在我擁有的館藏上是正確的:mediarouter-v7:22.0.0

是否必須刪除最後一個?

+0

將其更改爲相同版本? –

+0

@MuratK。這是一個解決方案?如果我想使用SDK 23,我該怎麼做 – Ben

回答

0

您必須使用相同的版本號。將您的mediarouter-v7:22.0.0更改爲com.android.support:mediarouter-v7:23.0.0

有關支持包的概述,請參閱here

相關問題