Note that there are some explanatory texts on larger screens.

plurals
  1. POMaven is looking in the wrong directory for the Android tools - how can I correct this?
    text
    copied!<p>I've been following the instructions here - I want to build the helloworld.apk, and generally get started with Android/Maven development.</p> <p><a href="https://github.com/akquinet/android-archetypes/wiki" rel="nofollow">https://github.com/akquinet/android-archetypes/wiki</a></p> <p>Any time I try to compile I get the following error message:</p> <pre><code>Embedded error: ANDROID-040-001: Could not execute: Command = /bin/sh -c cd /home/sal/workspace/foo5 &amp;&amp; /home/sal/opt/android-sdk-linux_x86/platforms/android-8/tools/aapt/package -m -J /home/sal/workspace/foo5/target/generated-sources/r -M /home/sal/workspace/foo5/AndroidManifest.xml -S /home/sal/workspace/foo5/target/generated-sources/combined-resources/res -I /home/sal/opt/android-sdk-linux_x86/platforms/android-8/android.jar, Result = 127 [INFO] ------------------------------------------------------------------------ </code></pre> <p>It's looking for the aapt utility in an obsolete location. I seem to remember that older versions of the Android SDK had a tools directory for each platform available. This was changed so that there's a sharared tools and platform-tools folder. </p> <p>How do I make maven use the correct folders. </p> <p>One solution is simply to copy all the tools into one messy folder, but surely there's a more elegant way of doing this?</p> <p>Update 0: I already have the SDK path set...</p> <pre><code>&lt;properties&gt; &lt;outputDirectory&gt;target/classes&lt;/outputDirectory&gt; &lt;!-- Path to the sdk in the file system --&gt; &lt;sdkPath&gt;/home/sal/opt/android-sdk-linux_x86&lt;/sdkPath&gt; &lt;/properties&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload