Tuesday May 21, 2013

ADF Mobile - Deploying to Android fails with "Cannot find program ... aapt"

There's an old saying, if things don't change, they often stay the same.

It appears as of last week (post Google's I/O conference) that there has been a change to the Android SDK.  If you download the complete Android SDK as of 14th May 2013 and later, Google has changed the structure of the SDK such that some critical files that JDeveloper and ADF Mobile rely on deployment have moved.  The error during deployment you'll see is something similar to:

[08:36:21 AM] Shutting down Android Debug Bridge server... 
[08:36:21 AM] Deployment cancelled. 
[08:36:21 AM] ----  Deployment incomplete  ----. 
[08:36:21 AM] Cannot run program 
"/Users/joedoe/Oracle/adt-bundle-mac-x86_64-20130514/sdk/platform-tools/aapt": error=2, No such file or directory 
[08:36:21 AM] error=2, No such file or directory

In the SDK it appears the following files/directories have moved:

aapt
dx
/lib

...from...

<sdk>/platform-tools

...to...

<sdk>/build-tools/android-4.2.2 

...and it is this which causes the JDev ADF Mobile Android deployment process to choke.

For your reference Oracle is working on this and is tracking it via bug 16837655.  However there appears to be a simple workaround. Simply copy those files and the lib subdirectory to the platform-tools directory.  If the workaround does not work for you please log the issue on the OTN Forums and/or Support so we can investigate why.

Please note if you've downloaded the SDK prior to this, you wont hit this issue.  It only applies to anyone downloading the complete SDK since 14th May+.

Image courtesy of David Castillo Dominici / FreeDigitalPhotos.net
About

Chris Muir - Oracle ADF Product Manager - The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.

Search

Categories
Archives
« May 2013 »
SunMonTueWedThuFriSat
   
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
17
18
19
20
22
23
24
25
26
27
28
29
30
31
 
       
Today