kerasking / maven-android-plugin

Automatically exported from code.google.com/p/maven-android-plugin
0 stars 0 forks source link

Cannot compile samples using latest SDKs #380

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
On Mac 10.6.8
1. Install latest android ADT from Google. API level 17
2. Install needed API level 10
3. Installed Maven 3.0.5
4. Setup the needed PATH variable to point to android sdk and java home
5. Go to sample root and run mvn clean package

What is the expected output?
Success in compiling all sample jar

What do you see instead?
[ERROR] Failed to execute goal 
com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.5.3:generate
-sources (default-generate-sources) on project application: Execution 
default-generate-sources of goal 
com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.5.3:generate
-sources failed: Could not find tool 'aapt'. Please provide a proper Android 
SDK directory path as configuration parameter <sdk><path>...</path></sdk> in 
the plugin <configuration/>. As an alternative, you may add the parameter to 
commandline: -Dandroid.sdk.path=... or set environment variable ANDROID_HOME. 
-> [Help 1]

What version of maven-android-plugin are you using?
3.5.3 as seen in above output

What are the complete output lines of "mvn -version" on your machine?
tom$ mvn --version
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 
05:51:28-0800)
Maven home: /usr/local/apache-maven/apache-maven-3.0.5
Java version: 1.6.0_45, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.6.8", arch: "x86_64", family: "mac"

Please provide any additional information below.
tom $ which aapt
/Users/tom/sukuru/android/adt-bundle-mac-x86_64-20130514/sdk/build-tools/android
-4.2.2/aapt
tom $ echo $PATH
.../Users/tom/sukuru/android/adt-bundle-mac-x86_64-20130514/sdk:/Users/tom/sukur
u/android/adt-bundle-mac-x86_64-20130514/sdk/tools:/Users/tom/sukuru/android/adt
-bundle-mac-x86_64-20130514/sdk/platform-tools:/Users/tom/sukuru/android/adt-bun
dle-mac-x86_64-20130514/sdk/build-tools/android-4.2.2

Original issue reported on code.google.com by tom...@gmail.com on 18 May 2013 at 1:18

GoogleCodeExporter commented 9 years ago
Hi I have the same issue.
There is a dirty, but fast workaround for this issue:
Update your Android SDK.
Copy android-sdk-windows\build-tools\17.0.0\ folder contents to 
android-sdk-windows\tools\ (without overwrite), aaaand thats it.
You can link those files on *nix or whatever.

Original comment by kovmarc...@gmail.com on 18 May 2013 at 10:17

GoogleCodeExporter commented 9 years ago
Fixed in 3.6.0

Original comment by mosa...@gmail.com on 24 May 2013 at 4:52