Skip to main content

Error while deploying MAF app to android - Cannot run program "adt-bundle-windows-x86_64-20140321\sdk\tools\zipalign"

In case, if you hit the below error while deploying MAF application to android device, this post is for you.

[12:11:31 PM] Cannot run program "xxx\adt-bundle-windows-x86_64-20140321\sdk\tools\zipalign"": CreateProcess error=2, The system cannot find the file specified
[12:11:31 PM] CreateProcess error=2, The system cannot find the file specified

When generating an deployable artifact(apk), JDeveloper uses zipalign.exe that comes with ADT. This used to be located in /sdk/tools, but (with latest ADT release) it is now located in /sdk/build-tools/ folder. A quick work around (till the fix is available in Jdev) for the above issue is to copy the appropriate  zipalign.exe to /sdk/tools folder. 

Comments

Albin Jose said…
For me it shows an error:

BUILD FAILED
C:\Users\a_jose\MAF_Workspace\APIDemo\.main.android\bin\build-android.xml:232: The following error occurred while executing this line:
C:\Users\a_jose\Documents\AN\adt-bundle-windows-x86-20130917\sdk\tools\ant\build.xml:1139: The following error occurred while executing this line:
C:\Users\a_jose\Documents\AN\adt-bundle-windows-x86-20130917\sdk\tools\ant\build.xml:1156: The following error occurred while executing this line:
C:\Users\a_jose\Documents\AN\adt-bundle-windows-x86-20130917\sdk\tools\ant\build.xml:335: Execute failed: java.io.IOException: Cannot run program "C:\Users\a_jose\MAF_Workspace\APIDemo\.main.android\bin\${zipalign}": CreateProcess error=2, The system cannot find the file specified

Do you have a workaround for this problem?

Popular posts from this blog

How to set Bind Variable Values at runtime ?

In this post I'm sharing a couple of approaches for programmatically setting bind variables values at run time. This post is an attempt to explain 'When to use what ?'[ In case if you are familiar with 'Bind Variables' in ADF BC, please refer Section 5.10, Working with Bind Variables in Fusion Developer's Guide ]

1. Set the Bind Variable value using RowSet::setNamedWhereClauseParam(...)

You can use use the setNamedWhereClauseParam(...) method on the ViewObject interface (which extends oracle.jbo.RowSet) to set the value for bind variables. Please note this sets the value on default RowSet. In other words, this doesn't have any effect on the secondary RowSets that you/system generates.
ViewObject vo = am.findViewObject("EmployeesView1"); vo.setNamedWhereClauseParam("bindVarDeptId", new Number(10)); vo.executeQuery();
2. Set the Bind Variable value using ViewObject's VariableValueManager::setVariableValue(...)

VariableValueManager Ma…

Happy New Year 2018 !

We can't go back and change the beginning, but we always can start where we are and change the ending. Believe in yourself and you will be unstoppable!

Wishing you and your family a very happy new year 2018 !!!