title: Build Android project on command line on OSX: Task 'assembleDebug' not found in root project
body: <p>I'm trying to build Android projects on the OSX (Mavericks 10.9.5) command line using this how-to: <a href="http://developer.android.com/tools/building/building-cmdline.html" rel="noreferrer">http://developer.android.com/tools/building/building-cmdline.html</a>.</p>
  
  <p>This How-To explains the use of assembleDebug/assembleRelease to build an Android project.</p>
  
  <p>Unfortunately gradle doesn't create the <strong>assembleDebug</strong> or <strong>assembleRelease</strong> targets.</p>
  
  <p>Executing <code>./gradlew assembleDebug</code> returns this:</p>
  
  <pre><code>FAILURE: Build failed with an exception.
  
  * What went wrong:
  Task 'assembleDebug' not found in root project 'test'.
  
  * Try:
  Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack     trace. Run with --info or --debug option to get more log output.
  
  BUILD FAILED
  
  Total time: 2.826 secs
  </code></pre>
  
  <h1>Steps:</h1>
  
  <h2>android create project</h2>
  
  <p>The test project has been created with <code>android create project --path . --name "DummyAPK" --target android-21 --package com.dummyapk.dummyapk --activity DummyActivity</code></p>
  
  <p>which returned</p>
  
  <pre><code>Created directory /Users/user/Documents/test/src/com/dummyapk/dummyapk
  Added file ./src/com/dummyapk/dummyapk/DummyActivity.java
  Created directory /Users/user/Documents/test/res
  Created directory /Users/user/Documents/test/bin
  Created directory /Users/user/Documents/test/libs
  Created directory /Users/user/Documents/test/res/values
  Added file ./res/values/strings.xml
  Created directory /Users/user/Documents/test/res/layout
  Added file ./res/layout/main.xml
  Created directory /Users/user/Documents/test/res/drawable-xhdpi
  Created directory /Users/user/Documents/test/res/drawable-hdpi
  Created directory /Users/user/Documents/test/res/drawable-mdpi
  Created directory /Users/user/Documents/test/res/drawable-ldpi
  Added file ./AndroidManifest.xml
  Added file ./build.xml
  Added file ./proguard-project.txt
  </code></pre>
  
  <h2>gradle init</h2>
  
  <p>After that I executed <code>gradle init</code>, which returned</p>
  
  <pre><code>:wrapper
  :init
  BUILD SUCCESSFUL
  </code></pre>
  
  <h2>gradlew tasks</h2>
  
  <p>Querying the available tasks with <code>gradlew tasks</code> returns (isn't there missing something?)</p>
  
  <pre><code>:tasks
  
  ------------------------------------------------------------
  All tasks runnable from root project
  ------------------------------------------------------------
  
  Build Setup tasks
  -----------------
  init - Initializes a new Gradle build. [incubating]
  wrapper - Generates Gradle wrapper files. [incubating]
  
  Help tasks
  ----------
  components - Displays the components produced by root project 'test'. [incubating]
  dependencies - Displays all dependencies declared in root project 'test'.
  dependencyInsight - Displays the insight into a specific dependency in root project 'test'.
  help - Displays a help message.
  projects - Displays the sub-projects of root project 'test'.
  properties - Displays the properties of root project 'test'.
  tasks - Displays the tasks runnable from root project 'test'.
  
  To see all tasks and more detail, run with --all.
  
  BUILD SUCCESSFUL
  
  Total time: 3.474 secs
  </code></pre>
  
  <p>My Java version is</p>
  
  <pre><code>java version "1.7.0_60"
  Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
  Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
  </code></pre>
  
  <p>..and Gradle version (installed via brew) is</p>
  
  <pre><code>------------------------------------------------------------
  Gradle 2.2.1
  ------------------------------------------------------------
  
  Build time:   2014-11-24 09:45:35 UTC
  Build number: none
  Revision:     6fcb59c06f43a4e6b1bcb401f7686a8601a1fb4a
  
  Groovy:       2.3.6
  Ant:          Apache Ant(TM) version 1.9.3 compiled on December 23 2013
  JVM:          1.7.0_60 (Oracle Corporation 24.60-b09)
  OS:           Mac OS X 10.9.5 x86_64
  </code></pre>
  
  <p>What am I missing to be able to build an Android project on the command line?</p>