1. 程式人生 > >Android Studio2.3 All com.android.support libraries must use the exact same version specification...

Android Studio2.3 All com.android.support libraries must use the exact same version specification...

今天匯入公司的一個專案,發現gradle出現如下情況


All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 25.0.0, 24.2.1. Examples include com.android.support:renderscript:25.0.0 and com.android.support:animated-vector-drawable:24.2.1 
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.)

很奇怪為什麼警告會在multidex這個依賴包上,搜尋若干資料無解

最後將下圖的24.2.1改成25.0.0,警告消除