How to build the Android sample projects using Ant? build.xml does not exist

后端 未结 4 1830
南方客
南方客 2020-12-07 12:18

I believe I\'ve followed the instructions in the Android SDK, and I\'m now trying to build the sample LunarLander (random one picked)

$ cd samples/android-11         


        
4条回答
  •  误落风尘
    2020-12-07 12:59

    You need to execute this command:

    android update project --target  --path 
    

    which will create the needed build.xml within the example directory, then the ant debug command should work.

    Take a look here.

    *You can use android list targets to choose what build target to use for your project.

提交回复
热议问题