Reputation: 29
I want to change my compileSdkVersion from 23 to 21.
My problem is that I do not know, how should I do it and I take the following error :
Please guide me.
Thanks.
Upvotes: 0
Views: 1930
Reputation: 1404
compile 'com.android.support:design:21.0.3'
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.android.support:recyclerview-v7:21.0.3'
compile 'com.android.support:support-v4:21.0.3'
Upvotes: 1
Reputation: 67
Change some lines as following:
compileSdkVersion 21
buildToolsVersion "21.0.3"
compile 'com.android.support:design:21.0.3'
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.android.support:recyclerview-v7:21.0.3'
compile 'com.android.support:suppoert-v4:21.0.3'
if still red lines appears & showing error, then you need to install appropriate repositories or build tools.
Upvotes: 0
Reputation: 44813
compileSdkVersion and support libraries version should have always the same major version value.
If you downgrade compileSdkVersion
to API 21 you should downgrade your support libraries version to 21.0.3.
if you have: "Install Repository and sync project" error, you should upgrade the Android Support Repository from Android Studio following the official guide here as the image below.
Upvotes: 0