Build Android project on command line on OSX: Task 'assembleDebug' not found in root project

前端 未结 3 2195
一生所求
一生所求 2021-02-20 01:31

I\'m trying to build Android projects on the OSX (Mavericks 10.9.5) command line using this how-to: http://developer.android.com/tools/building/building-cmdline.html.

Th

3条回答
  •  醉话见心
    2021-02-20 01:58

    android create project does not create a gradle friendly structure. It creates an ant friendly structure. You have two options depending on your intentions.

    1. use ant to build your project ( not currently supported by Android team )
    2. use Android Studio to generate a gradle friendly project structure.

    num 2 is the recommended approach by the Android team. It's as simple as dl'ing Android Studio and creating a new project. From there you should be able to create a new project that can be built with ./gradlew build

提交回复
热议问题