I am using Eclipse Juno (Service Release 2), IBM Worklight Studio v6.2.0.00 and IBM Mobilefirst Platform Test Workbench v8.6.0
What I am trying to do is to upload an apk from the Android environment of my Worklight Project to the Mobile Test Workbench but it keeps failing, giving me the following error:
com.ibm.rational.test.lt.core.moeb.utils.ProcessExec$ProcessExecException: Cannot exec command:
[C:\PROGRA~2\Android\ANDROI~1\build-tools\21.0.0\aapt.exe p --no-crunch -F
C:\Users\abhm\Desktop\WORKSP~1\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\A3E821~1\unsigned8260035661537229820.apk -0 arsc -A
C:\Users\abhm\Desktop\WORKSP~1\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\A3E821~1\HipraLinkHipraLinkAndroid\assets
C:\Users\abhm\Desktop\WORKSP~1\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\A3E821~1\HipraLinkHipraLinkAndroid\build\apk]
Exit code: -1073741819
Process error stream:
at com.ibm.rational.test.lt.core.moeb.utils.ProcessExec.processExitCode(ProcessExec.java:261)
at com.ibm.rational.test.lt.core.moeb.utils.ProcessExec.exec(ProcessExec.java:235)
at com.ibm.rational.test.lt.core.moeb.utils.ProcessExec.exec(ProcessExec.java:116)
at com.ibm.rational.test.lt.core.moeb.utils.ProcessExec.exec(ProcessExec.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:443)
at brut.androlib.Androlib.buildApk(Androlib.java:515)
at brut.androlib.Androlib.build(Androlib.java:250)
at brut.androlib.Androlib.build(Androlib.java:213)
at com.ibm.rational.test.mobile.android.buildchain.tools.build.BuildWrapper.build(BuildWrapper.java:214)
at com.ibm.rational.test.mobile.android.buildchain.AndroidBuildChain.build(AndroidBuildChain.java:330)
at com.ibm.rational.test.lt.models.behavior.moeb.utils.BuildChainManager$Build.run(BuildChainManager.java:200)
at java.lang.Thread.run(Unknown Source)
I have seen some answers of people that had the same problem and solutions but they did not work: I have tried to copy the zipalign.exe to the tools folder (where the android sdk is installed), the hotfix does not work because it is for a previous version of the MTW and I have already changed the JRE definition to point to JDK.
I have also tried to execute the line in the cmd and gave me the following error:
ERROR: 'C:\Users\abhm\Desktop\WORKSP~1\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\A3E
821~1\unsigned8260035661537229820.apk' exists (use '-f' to force overwrite)
And when I use the '-f' to fore overwrite, the aapt.exe (Android Asset Packaging Tool) crashes...
Is there any other suggestion? Is there anything I can do?