What is the difference between the "target" settings in the "project.properties" file and the "android: targetSdkVersion" tag in the manifest?

How do they differ? Or are they the same? As far as I understand, both of them determine which version of the SDK to compile.

Please help clarify. thanks in advance

+18
android manifest
Jun 17 2018-12-18T00:
source share
2 answers

docs say

android: targetSdkVersion: this attribute informs the system that you have tested against the target version, and the system should not allow any compatibility behavior to support your application. forward compatibility with the target version. The application is still able to work in older versions

If not set, the default value is minSdkVersion. This means that the market will filter devices with a lower sdk level.

target = the version of android-sdk in the project properties file indicates that Eclipse will not allow the use of methods or classes from sdk higher than this.

T. One of them is related to the development environment and others related to Android devices.

+20
Jun 17 '12 at 15:24
source share
— -

target in project properties is the version of Android with which your project is compiled.

targetSdkVersion in the manifest is the version of Android your application is targeting. For example, if you install the target version to 14 or higher, Android v4 will display certain ICS features, such as an action bar.

http://developer.android.com/guide/topics/manifest/uses-sdk-element.html

+6
Jun 17 '12 at 15:27
source share



All Articles