compileSdkVersion, minSdkVersion and targetSdkVersion differences and relations

First laugh at yourself, and he has six years of experience in the development of Android, but now recall previous work, I found not too fond of taking notes, so good! So a week or more it 2-3. Today to talk about the differences and relations compileSdkVersion, minSdkVersion and targetSdkVersion, as well as in normal development, we should be how to configure.

compileSdkVersion, first of all from the literal meaning to understand, SdkVersion not say, compile that is compiled, written mean, that is the version number that we use when using the tool development or work. google updated every six months on average for the Android version, so Android highest version number change is often the case. Of course google itself in the development of a new version number, it will take into account the previous version, but will abandon some of the less useful code. So we'd better set to the latest version when you set up the information field. After setting might be in the process of compiling some code tips, you can not care, of course, it is best to look at.

targetSdkVersion, first target is the goal of literally mean that we generate the target version used in the installation package. After setting the field properties, generally less than or equal to compileSdkVersion value, we can be fully tested for the installation package, and then update to the latest version. Of course, if we use some third-party resource package, targetSdkVersion might be required, such as Tencent's best pigeon push requirement is 22. So the field as the case may be.

minSdkVersion, literally means the minimum version number. For our installation package is compatible with the version number of the minimum basis. Then set the best look at the different versions of the current cell phone use google released to the market to be.

Guess you like

Origin www.cnblogs.com/fei-android/p/11086957.html