How to change target build on Android project?

how to change minimum sdk version in android studio
change your apps target api level
how to change minimum sdk version in android studio 2019
android studio setting target sdk
change target device android studio
what is target sdk version in android studio
how to set target in android studio
change api

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 targetSdk of 8.

To do this I see that I must build against the newest SDK (2.2)

To do this in Eclipse I right click on my project, go to properties, click on Android and change the project build target to Android 2.2 and click apply and then ok.

However this appears to have no affect and when I try it again the target build is set back at Android 1.5.

Am I missing a step or something?

Right click the project and click "Properties". Then select "Android" from the tree on the left. You can then select the target version on the right.

(Note as per the popular comment below, make sure your properties, classpath and project files are writable otherwise it won't work)

How To Change API SDK Level In Android Studio, Step 2: In project Structure window, select app/mobile module in the list given on left side. Change the Compile SDK Version and Build Tool  how to check api level in android (8) 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

  1. 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.

  2. 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

  3. Rebuild your project.

    Click the Project on the menu bar, select Clean...

  4. 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.

How to Change Target API Level 26 or Above in Android Studio , Learn how to quickly build and run your app on the Android emulator or Change the run/debug configuration; Change the build variant; Build your project From the target device drop-down menu, select the device that you  I am trying to change the target android version of my project to 8.1. This site uses cookies for analytics, personalized content and ads. By continuing to browse this site, you agree to this use.

Another way on the command line if you are using ant is to use the android.bat script (Windows) or android script (Mac). It's in $SDK_DIR/tools.

If you say,

android.bat update project --path .  --target "android-8"

it will regenerate your build.xml, AndroidManifest.xml, etc.

Build and run your app, Building Android. Contents; Set up environment; Choose a target; Building the code; Run it! Choose which target to build with lunch . sure you've followed the steps in Setting up the environment and Choosing a target. Click android studio menu ” File —> Project Structure “. In Project Structure dialog, select app in Modules list. Select Flavors tab in right panel, then you can select your desired android Min Sdk Version and Target Sdk Version. Click OK to save the selection. Click ” Build —> Rebuild Project ” menu item to rebuild the android project. This time the build.gradle file will be changed by android studio automatically.

There are three ways to resolve this issue.

  1. Right click the project and click "Properties". Then select "Android" from left. You can then select the target version from right side.

  2. 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.

  3. Edit the following elements in the AndroidManifest.xml file

xml:

<uses-sdk android:minSdkVersion="3" />
<uses-sdk android:targetSdkVersion="8" />

Building Android, targetSdkVersion : This is the android os version which your app actually executed with. change android min sdk version in build.gradle then you can select your desired android Min Sdk Version and Target Sdk Version. To configure a project to target a 64-bit platform. On the menu bar, choose Build > Configuration Manager. In the Active solution platform list, choose a 64-bit platform for the solution to target, and then choose the Close button. If the platform that you want doesn't appear in the Active solution platform list, choose New.

Well I agree with Ryan Conrad on how to do it in eclipse, have you ensured you have changed your manifest.xml?

 <uses-sdk android:minSdkVersion="3" />
 <uses-sdk android:targetSdkVersion="8" />

How To Change Minimum Sdk Version In Android Studio, The shared runtime may be disabled in Debug builds by setting the Android build process is based on MSBuild, which is also the project file format used by AdbTarget – Specifies the Android target device the Android  You just have to sync the project after changing the build.gradle file, but Android Studio 0.5.2 display a yellow status bar on top of the build.gradle editor window to help you Also note there at least two build.gradle files: one master and one for the app/module. The one to change is in the app/module,

Build Process, In <your-project>/platforms/android/app/gradle.properties cdvMinSdkVersion=20. By extending build.gradle via a build-extras.gradle file and setting the property  To build and run your app, follow these steps: In the toolbar, select your app from the run configurations drop-down menu. From the target device drop-down menu, select the device that you want to run your app on.

Android Platform Guide, Minimum API Level, which I can set in Unity build "Other" settings. here will be the default android version unity will target (your app will only  To change the target Framework. In Visual Studio, in Solution Explorer, select your project. On the menu bar, open the Project menu and choose Unload project. This unloads the project (.vcxproj) file for your project.

How to change Android Compile SDK target ?, Go to Build Settings and make sure Android is selected as the target platform. Change the Build System to Gradle, and tick the Export Project  How To Change API SDK Level In Android Studio Basically, API level means the Android version. This defines for which version you are targeting your application and what is going to be the minimum level of android version in your application will run.

Comments
  • turns out my properties, classpath and project files were set as unwritable which is why it didnt work, works now, thanks
  • I hit this same problem. Source control caused the files to not be writable and prevented the switch. You don't get any kind of warning or indication there is a problem...it just doesn't switch. If others encounter this, make sure you "check out for edit" or whatever the right action is in your source control library.
  • Any way to set the DEFAULT option? With multiple APK's its kind of annoying having to set this every time...
  • @DonalRafferty how to check if they are writeable or not? and how to make them writeable?
  • @Muhammad Babar I was using Visual Source safe which was automatically making the files Read Only. I just unchecked the Read only box on the files, I was using a windows machine at the time.
  • Tipp: After going through all this steps, restart your Eclipse. This can do wonders.
  • Agreed! I couldn't get this working until Eclipse was restarted.
  • In Android Studio, I had to merge these lines together. Not sure if this is specific to Android studio, or if the manifest format has required the change since this was posted. eg: <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="21" />