Android: Failed to parse the output of ‘adb version’

Jan 16, 2014 09:33


Originally published at Moishe Beshkin. You can comment here or there.

I tried to create java app fro connecting to Android device. Here is the code: public class Main { public static void main(String[] args) throws IOException { AndroidDebugBridge.initIfNeeded(false); AndroidDebugBridge adb = AndroidDebugBridge.createBridge(“C:\\install\\adt-bundle-windows-x86_64-20130917\\sdk\\platform-tools\\adb.exe”, true); if (adb == null) { System.err.println(“Invalid ADB location.”); System.exit(1); } IDevice[] iDevices = adb.getDevices(); AndroidDebugBridge.addDeviceChangeListener(new AndroidDebugBridge.IDeviceChangeListener() { @Override public void deviceChanged(IDevice device, [...]

issues and resolutions

Previous post Next post
Up