How to change target build on Android project?

后端 未结 13 636
傲寒
傲寒 2020-12-04 11:01

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

13条回答
  •  误落风尘
    2020-12-04 11:10

    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:

      
      
      

      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.

提交回复
热议问题