Ask Your Question
4

How do compileSdkVersion and targetSdkVersion differ from each other?

asked 2021-11-21 11:00:00 +0000

qstack gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-06-25 03:00:00 +0000

nofretete gravatar image

compileSdkVersion and targetSdkVersion are two important values in an Android project's build.gradle file. They are used to define the version of the Android SDK that the project is using.

CompileSdkVersion is the version of the SDK that is used to compile the project. This means that the Android SDK tools will use this version of the SDK to build the APK file for the app. It is recommended to always use the latest available version of the SDK for this value.

TargetSdkVersion, on the other hand, is the version of the SDK that the app targets. This means that the app is written to be compatible with this version of the SDK, and this is the version that Google Play will check for compatibility when the app is submitted. It is recommended to always set this value to the latest available version of the SDK that the app has been tested with.

In summary, compileSdkVersion is used to build the app, while targetSdkVersion identifies the maximum version of the Android platform on which an application is designed to run.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-11-21 11:00:00 +0000

Seen: 24 times

Last updated: Jun 25 '22