Differences between buildToolVersion and CompileSdkVersion in Android
- 2021-10-25 08:02:35
- OfStack
Main directories in SDK:
"build-tools" contains different versions of build tools (e.g. 21.1. 1), including aapt packaging tools, dx. bat, aidl. exe, and so on "platform" is where different API-level versions of SDK directories are stored "platform-tools" are tools related to android platform, adb, fastboot, etc "tools" refers to tools related to Android development, such as android. bat, ddms. bat (Dalvik debug Monitor Service), draw9patch. bat and so on1. CompileSdkVersion is the version number of your SDK, that is, API Level, such as API-19, API-20, API-21 and so on.
2. buildeToolVersion is the version of your build tools, including packaging tools aapt, dx, etc. The directory for this tool is located at.. your_sdk_path/build-tools/XX. XX. XX
3. You can set sdk.buildtools=17. 0.0 in project. properties of ecplise. You can also not set it. If you don't set it, you will specify the latest version. In android studio, it must be set in build. gradle. For example
compileSdkVersion 22 buildToolsVersion "22.0.1"4. You can build a lower version of sdk project with a higher version of build-tool, for example, build-tool version 20, and build an sdk version 18
For example:
compileSdkVersion 18
Summarize