I currently have an Android project in Eclipse.
I created it with a target build of 1.5 (sdk 3).
Now I want to change it so that it has a minSdk of 3 and tar
right click on project->properties->android->select target name --set target-- click ok
You can change your the Build Target for your project at any time:
Right-click the project in the Package Explorer, select Properties, select Android and then check the desired Project Target.
Edit the following elements in the AndroidManifest.xml file (it is in your project root directory)
In this case, that will be:
<uses-sdk android:minSdkVersion="3" />
<uses-sdk android:targetSdkVersion="8" />
Save it
Rebuild your project.
Click the Project on the menu bar, select Clean...
Now, run the project again.
Right Click Project name, move on Run as, and select Android Application
By the way, reviewing Managing Projects from Eclipse with ADT will be helpful. Especially the part called Creating an Android Project.
There are three ways to resolve this issue.
Right click the project and click "Properties". Then select "Android" from left. You can then select the target version from right side.
Right Click on Project and select "run as" , then a drop down list will be open.
Select "Run Configuration" from Drop Down list.Then a form will be open ,
Select "Target" tab from "Form" and also select Android Version Api ,
On which you want to execute your application, it is a fastest way to check
your application on different Target Version.
Edit the following elements in the AndroidManifest.xml file
xml:
<uses-sdk android:minSdkVersion="3" />
<uses-sdk android:targetSdkVersion="8" />
to get sdk 29- android 10:
Click Tools > SDK Manager.
In the SDK Platforms tab, select Android 10 (29).
In the SDK Tools tab, select Android SDK Build-Tools 29 (or higher).
Click OK to begin install.
The file default.properties
is by default read only, changing that worked for me.
You should not have multiple "uses-sdk" tags in your file. ref - docs
Use this syntax:
<uses-sdk android:minSdkVersion="integer"
android:targetSdkVersion="integer"
android:maxSdkVersion="integer" />