I am creating a project in android using eclipse.
Now my problem is when i create a android application project, I set Build Sdk version to 4.1 (API 16). But when i saw in manifest file the android:targetSdkVersion="15" . Can anyone explain me why this is happening ? see the below screenshots.


Thanks in advance
Updated Answer:
Here it goes,
Solution is,
goto:
Open :
Change :
default :
Modified :
So the Problem goes here:
In the ftl file the attribute name
${targetApi}has been set, but we are selecting thebuildApivalue in the project creation window.${targetApi}or${buildApi}default value is the higher version , that means in your SDK tool it is API 15. So it is always 15 in the Manifest.If you tried to create a new project with target API less than 10 or more than 15 anything , in the manifest it will be denoted as 15 only always.
Try this:
Create a project with API target 8 and see , manifest target will be 15 only. (Before modify the ftl file).
But
project.propertieshas been updated properly.So if you change
${targetApi}to${buildApi}in theManifest.xml.ftl, the problem solved.It is a possible error in SDK tools revision 20, Even i updated the SDK tools itsn’t resolved in the recent revision also.
Hope this one might be helpful for somebody, those who facing the same.
Older Answer:
It is showing for me too. But in my case, I selected API 14 and it is showing
android:targetSdkVersion="15"in the manifest.I guess some reason should be there… 4.0 or 4.2 , it is assigning 4.1 in the manifest… Or may be a bug with Eclipse IDE. Why cant you update the newer version of Eclipse IDE and try it out. This might be a IDE Problem only.
Can you see that Right click- Properties – Android , Checked one is same what you selected in the beginning.
And also project.properties has the same version what you selected in the beginning.