简体   繁体   中英

design library of android sdk 20

I am working on a project which was targeting SDK version 23 but I had to change it to 20 and consequently I have to change com.android.support:appcompat and com.android.support:design

I set appcompat to com.android.support:appcompat-v7:20.0.0 and it works fine, but I can not find not what to change design to.

Thank you

As explained in Picking your compileSdkVersion, minSdkVersion, and targetSdkVersion blog post :

Therefore it is strongly recommended that you always compile with the latest SDK. You'll get all the benefits of new compilation checks on existing code, avoid newly deprecated APIs, and be ready to use new APIs.

Note that if you use the Support Library, compiling with the latest SDK is a requirement for using the latest Support Library releases.

There is no Design Library prior to 23.0.0, so you must compile with API 23.

However, the blog also says:

It should be emphasized that changing your compileSdkVersion does not change runtime behavior.

You can target a lower SDK version than you compile with, allowing you to (conditionally) use new APIs and use new versions of the Support Library, while keeping the compatibility modes controlled by targetSdkVersion at a lower SDK.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM