Question

I want to download the Android SDK Tools Revision 21.1. I have seen android website but I have found no way to download it. It is required as I am working on JDeveloper ADF Mobile and it follows the Android SDKs old directory structure.

Although It is good practice to work with latest SDKs, but here I have problem working with Revision 22 as JDeveloper doesn't support latest Android SDK directory structure (Rev 22).

For JDeveloper: Following links might give them why I need old SDK version.

Let me know how to download Rev 21.x or provide me the solution of this problem. One solution the above link gave was to copy and paste the required files from build-tools to platform-tools but still, it didn't solve the issue.

Thank You!

Was it helpful?

Solution

In my case it is working with C:\AndroidSDK\sdk\build-tools\android-4.4.2.

This part I took it from the Mobile Developer's Guide for Oracle Application Development Framework (Deploying ADF Mobile applications)

Note:

The structure of the SDK tools is changed in the release of Revision 22, with the build tools components relocated from the platform-tools directory to the build-tools directory.

To enable deployment, the Android Build Tools Location field must reference the location of one of these build tools, the aapt file (aapt.exe on Windows systems).

The location of this file differs depending on the SDK revision.

For Revision 22, this file is located within the build-tools directory (such as SDK Installation\adt-bundle-windows-x86\sdk\build-tools\ Android-4.n).

For earlier revisions, it is located within the platform-tools directory (such as SDK Installation\adt-bundle-windows-x86\platfrom-tools). ADF Mobile queries the Android SDK for the location of the appt file and populates the Android Build Tools Location field accordingly.

For Revision 22 of the SDK, ADF Mobile populates the field with the latest version of the build-tools directory that is installed on the development computer.

For revisions prior to 22, ADF Mobile populates the field with the location of the platform-tools directory. In this case, the field is read-only.

OTHER TIPS

After spending plenty of time I have found its solution. Although the solution is not a proper solution as Oracle needs to fix it.

Copy all the files (aapt.exe and dx.bat) from build-tools folder to platform-tools folder in Android SDK.

Now, copy java.exe file from System32 folder to SysWOW64 and you are done. It works for me. This is a temporary solution and you can get your work going.

Thanks!

@faizan this issue is for android API 19 and above.Oracle has not come up with a permenant solution.Instead of using the temporary solution you mentioned above...use API 17 i.e 4.2.2 Install sdk platform for API 17 and build tools for API 17 and then you will not face this error.It works smoothly. Working on API 17 is bugfree and stable as of now.Also attaching a screenshot for your reference. enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top