DevTest 10.2 does not install MobileUtils addons ,ANDROID_HOME is not set.

Document ID : KB000098174
Last Modified Date : 30/05/2018
Show Technical Document Details
Issue:
When 10.2 is installed, I don't see the D:\CA\DevTest\addons\MobileUtils\libimobiledevice\idevice_id.exe but when simulator starts, it's looking for this addon.

Error in Simulator logs:

2018-02-20 04:06:11,178Z (23:06) [pool-7-thread-1] ERROR com.itko.lisa.mobile.utils.IMobileDeviceUtils - Cannot run program "D:\CA\DevTest\addons\MobileUtils\libimobiledevice\idevice_id.exe": CreateProcess error=2, The system cannot find the file specified
java.io.IOException: Cannot run program "D:\CA\DevTest\addons\MobileUtils\libimobiledevice\idevice_id.exe": CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
    at com.itko.lisa.mobile.utils.SubprocessUtils.execToProcessIO(SubprocessUtils.java:253)
    at com.itko.lisa.mobile.utils.SubprocessUtils.execToProcessIO(SubprocessUtils.java:249)
    at com.itko.lisa.mobile.utils.IMobileDeviceUtils.getAttachedDeviceGUIDs(IMobileDeviceUtils.java:81)
    at com.itko.lisa.mobile.utils.DeviceUtils.getAttachedIOSDevices(DeviceUtils.java:711)
    at com.itko.lisa.mobile.utils.DeviceUtils$1.run(DeviceUtils.java:504)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
    at java.lang.ProcessImpl.start(ProcessImpl.java:137)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
    ... 8 more
2018-02-20 04:06:11,178Z (23:06) [pool-7-thread-1] INFO  com.itko.lisa.mobile.utils.DeviceUtils - Loaded iOS devices and sims
2018-02-20 04:06:11,194Z (23:06) [pool-7-thread-2] ERROR AndroidAvdHelper               - com.itko.lisa.mobile.android.AndroidSdkException: ANDROID_HOME is not set.
2018-02-20 04:06:11,194Z (23:06) [pool-7-thread-2] INFO  com.itko.lisa.mobile.utils.DeviceUtils - android platform tools not detected
2018-02-20 04:06:11,194Z (23:06) [pool-7-thread-2] INFO  com.itko.lisa.mobile.utils.DeviceUtils - Loaded Android devices
2018-02-20 04:06:11,194Z (23:06) [pool-7-thread-3] ERROR AndroidAvdHelper               - com.itko.lisa.mobile.android.AndroidSdkException: ANDROID_HOME is not set.
2018-02-20 04:06:11,194Z (23:06) [pool-7-thread-3] INFO  com.itko.lisa.mobile.utils.DeviceUtils - D:\tools\android.bat does not exist.
2018-02-20 04:06:11,194Z (23:06) [pool-7-thread-3] INFO  com.itko.lisa.mobile.utils.DeviceUtils - Loaded Android sims
2018-02-20 04:06:11,194Z (23:06) [pool-7-thread-4] ERROR AndroidAvdHelper               - com.itko.lisa.mobile.android.AndroidSdkException: ANDROID_HOME is not set.
Environment:
DevTest 10.2 and up
Cause:
This error occurs if Mobile settings are not properly set. 
Resolution:
Workaround to set ANDROID_HOME: 
1. Stop your Simulator.
2. You will have to kill all of the $ANDROID_HOME processes.
3. Update the local.properties file and add this property: ANDROID_HOME=""
4. Start the Simulator.
5. Verify no extra ANDROID_HOME processes start. 

OR 
We have a patch for this issue,  please refer to DE349476 when opening a ticket with CA Support.