title: Android Maven Could not find tool 'aapt'
body: <p>i was trying to follow this tutorial: </p>
  
  <p><a href="http://www.gdgankara.org/2012/11/01/step-by-step-android-development-with-maven/">http://www.gdgankara.org/2012/11/01/step-by-step-android-development-with-maven/</a></p>
  
  <p>but after setting up the environment, and create a project, at the "run as\maven install" step i got this:</p>
  
  <pre><code>SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
  SLF4J: Defaulting to no-operation (NOP) logger implementation
  SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
  [INFO] Scanning for projects...
  [INFO]                                                                         
  [INFO] ------------------------------------------------------------------------
  [INFO] Building tutorial 0.0.1-SNAPSHOT
  [INFO] ------------------------------------------------------------------------
  [INFO] 
  [INFO] --- android-maven-plugin:3.1.1:generate-sources (default-generate-sources) @ tutorial ---
  [INFO] ANDROID-904-002: Found aidl files: Count = 0
  [INFO] ANDROID-904-002: Found aidl files: Count = 0
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 1.889s
  [INFO] Finished at: Sat May 18 00:32:12 CEST 2013
  [INFO] Final Memory: 8M/111M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.1.1:generate-sources (default-generate-sources) on project tutorial: Execution default-generate-sources of goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.1.1:generate-sources failed: Could not find tool 'aapt'. Please provide a proper Android SDK directory path as configuration parameter &lt;sdk&gt;&lt;path&gt;...&lt;/path&gt;&lt;/sdk&gt; in the plugin &lt;configuration/&gt;. As an alternative, you may add the parameter to commandline: -Dandroid.sdk.path=... or set environment variable ANDROID_HOME. -&gt; [Help 1]
  [ERROR] 
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR] 
  [ERROR] For more information about the errors and possible solutions, please read the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
  </code></pre>
  
  <p>I've tried lot of times, but with no luck.
  I have Eclipse Juno on Windows7 64 bit, APK Tool installed and Maven 3.0.5.</p>
  
  <p>It seems a well known problem for maven staff:</p>
  
  <p><a href="https://code.google.com/p/maven-android-plugin/issues/detail?id=104">https://code.google.com/p/maven-android-plugin/issues/detail?id=104</a></p>
  
  <p>but it should be solved from ages...</p>
  
  <p>My Environment User variables:</p>
  
  <pre><code>M2_HOME=C:\Program Files\Java\apache-maven-3.0.5
  
  ANDROID_HOME=C:\adt-bundle-windows-x86_64-20130514\sdk
  </code></pre>
  
  <p>My Environment System variable:</p>
  
  <pre><code>Path=......;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools;%ANDROID_HOME%\build-tools;%ANDROID_HOME%\platforms;%M2_HOME%\bin;%ANDROID_HOME%\build-tools\android-4.2.2
  </code></pre>
  
  <p>Does anybody know how to workout this trap?</p>
  
  <p>thanks!</p>