понедельник, 28 ноября 2016 г.

Citrix MDX Unexpected error occurred. String index out of range: -1 when wrapping Android apps

Hello,

If you get this message “Unexpected error occurred. String index out of range: -1” when wrapping Android Apps with Citrix MDX 10.4.0 then you need to correct your Android_Settings.txt file.
And, as always, Citrix's articles are very confusing
https://support.citrix.com/article/CTX212689 (there they say "ok, you need to add /apktools/ and in the next example you don't see /apktools/ folder at all)
https://support.citrix.com/article/CTX217367 (there they even don't sure what the solution is)

I randomly tried add paths and the following configuration helped me to successfully wrap Android application:

PATH = 
/Users/admin/Downloads/adt-bundle-mac-x86_64-20140702/sdk/platform-tools:
/Users/admin/Downloads/adt-bundle-mac-x86_64-20140702/sdk/build-tools/23.0.2:
/Users/admin/Downloads/adt-bundle-mac-x86_64-20140702/sdk/tools:
/Users/admin/Downloads/adt-bundle-mac-x86_64-20140702/sdk/tools/apktool

Where /Users/admin/Downloads/adt-bundle-mac-x86_64-20140702/sdk is your path to sdk