Adam Williams
Adam Williams

Reputation: 11

Support library only using latest versions

About Android support library, since 25.0.1 has some bugs, so I want to use 7.24.1, here's some of my gradle codes

compile 'com.android.support:recyclerview-v7:24.2.1'
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.android.support:cardview-v7:24.2.1'
compile 'com.android.support:design:24.2.1'
compile 'com.android.support:support-v4:24.2.1'

But I find the project still refers the latest version; the version number "v7:24.2.1" does not work.

I want use 7:24.2.1, but when I click any Android support class, such as RecyclerView, it opens source code from sdk\extras\android\m2repository\com\android\support\recycler‌​view-v7\25.0.0\recyc‌​lerview-v7-25.0.0-so‌​urces.jar

Upvotes: 0

Views: 1639

Answers (2)

Adam Williams
Adam Williams

Reputation: 11

It turns out one of the depencencies include the android suppoert library25.0.0, I solve it by downgrading the depencency library

Upvotes: 0

Cédric Portmann
Cédric Portmann

Reputation: 1034

Clean Project will do the trick. Furthermore consider to change compileSdkVersionto24 and also install Android SDK Build-tools in Android SDK Manager.

As the latest version of the support library according to the support library changelog is v7:25.0.1 and not v7:24.2.1 modify your build.gradle to have v7:25.0.1:

compile "com.android.support:appcompat-v7:25.0.1"

However, if you really need v7:24.2.1 then simply put:

compile 'com.android.support:cardview-v7:24.2.1'
compile 'com.android.support:design:24.2.1'

You dont have to put the rest. They are already included as stated by cricket_007.

Upvotes: 2

Related Questions