Monday, 29 December 2014

ADF Mobile - attached device not being recognised

ADF Mobile - attached device not being recognised


Seemingly randomly I started having errors trying to deploy an ADF Mobile application to my MicromaxA210 mobile.  I was getting


[11:26:02 AM] ----  Deployment started.  ----

[11:26:02 AM] Target platform is  (Android).

[11:26:02 AM] Beginning deployment of MAF application "SigCap" to Android using profile "run1".

[11:26:03 AM] Checking state of Android Debug Bridge server...

[11:26:03 AM] Android Debug Bridge server already running.

[11:26:23 AM] Verifying a single Android device is online and connected to the ADB server...

[11:26:23 AM] Deployment cancelled.

[11:26:23 AM] ----  Deployment incomplete  ----.

[11:26:23 AM] Failed to detect a connected Android device.  Make sure the device is connected.  Otherwise, manually restart the ADB server.  The following results were provided by ADB:

List of devices attached

emulator-5554 offline

 (oracle.adfmf.framework.dt.deploy.android.deployers.CheckAttachedDevicesDeployer)


What I did to fix this was the following


1) From the Windows Start I ran devmgmt.msc and from here I found "Android Composite ADB Device" - I double clicked on this to chose to uninstall AND delete the driver.

2) I then re-connected the MicromaxA210 mobile and it started to install the driver.  I got an error here but I pressed on regardless since now at least Windows Explorer could see the device although JDeveloper couldn't

3) I made sure USB Debugging was ON on the MicromaxA210 mobile AND I also switch off Media Device (MTP) which is a USB connection option.


The combination of the above and the luck of the gods seemed to have got things working.