Friday, August 16, 2013

JDeveloper Compilation Error - Android SDK

When deploying ADF mobile application using JDeveloepr to Android Emulator, following error appears on deployment log and won't allow to deploy application.

It happens due to non-availability of following files/directories in android-sdk/platform-tools directory. In the latest release of Android SDK(Android 4.2.2 API 17), listed files/directories moved from platform-tools to build-tools directory. But still JDeveloper refers to platform-tools directory. Instead of waiting for fix/update from Oracle, following quick fix will help to finish deployment.



Quick Fix Steps:
1. Open command prompt with admin privileges in Windows
2. Create symbolic links in platform-tools directory for the listed files exists in build-tools directory.

mklink E:\Android\sdk\platform-tools\aapt.exe E:\Android\sdk\build-tools\android-4.2.2\aapt.exe
mklink /D E:\Android\sdk\platform-tools\lib E:\Android\sdk\build-tools\android-4.2.2\lib
mklink E:\Android\sdk\platform-tools\dx.bat E:\Android\sdk\build-tools\android-4.2.2\dx.bat

No comments:

Post a Comment

Provide your thoughts !