pitate7777777 / maven-android-plugin

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

Adapt to new path of aapt #379

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
With the new Android Tools 22/17, aapt has been moved to 
<android-sdk>/build-tools/17.0.0/aapt. Maven-android-plugin needs to reflect 
this.

Currently, this exception is thrown:

[ERROR] Failed to execute goal 
com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.5.3:generate
-sources (default-generate-sources) on project wallet: 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]

Original issue reported on code.google.com by andreas....@gmail.com on 16 May 2013 at 12:41

GoogleCodeExporter commented 9 years ago
Workaround:

cd <android-sdk>/platform-tools
ln -s ../build-tools/17.0.0/aapt aapt
ln -s ../build-tools/17.0.0/lib lib

Original comment by andreas....@gmail.com on 16 May 2013 at 12:55

GoogleCodeExporter commented 9 years ago
Fixed in 3.6.0

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

GoogleCodeExporter commented 9 years ago
For the workaround to work for me; I also had to do the following in addition 
to those provided by andreas:
ln -s ../build-tools/17.0.0/aidl aidl 

Original comment by christopher.senior on 5 Jun 2013 at 9:06