Android USB Debugging on Windows 10
You can debug your Android app on an Android device using the USB. To debug an Android app on Windows 10, do the following:
- Enable USB debugging on your Android phone
- Install Java SE SDK 8 update 152
- Configure Android SDK
- Configure Google Chrome for debugging
Enable USB debugging on your Android phone
On Android 4.1 and lower, the Developer options screen is available by default. On Android 4.2 and higher, do the following:
- Open the Settings app.
- Select System.
- Scroll to the bottom and select About phone.
- Scroll to the bottom and tap Build number 7 times.
- Return to the previous screen to find Developer options near the bottom.
- Scroll down and enable USB debugging.
Install Java SE SDK 8 update 152
Install Java SE SDK 8 update 152, click Java SE SDK 8 Update 152 and follow the instructions on your Windows 10 machine.
Configure Android SDK
To download and configure Android SDK on your Windows 10 computer, do the following:
Ensure that the same Android SDK version is used in Visualizer.
- Download the Android Studio .
- Click sdk-tools-windows-3859397.zip to download the Android SDK Command line tool for Windows.
- Extract the downloaded content to C:\Users\USERNAME\AppData\Local\Android.
- Navigate to C:\Users\USERNAME\.android and create an empty file named repositories.cfg.
- Install the Android SDK platform tool.
- Navigate to C:\Users\USERNAME\AppData\Local\Android\tools\bin
- Open a command window (Shift-Right click, Open Powershell window here, type
cmd
in the Powershell window). - Run the command
sdkmanager platform-tools
to install the Android SDK platform tools.
- List the Android devices connected to the Windows 10 PC.
- Navigate to C:\Users\USERNAME\AppData\Local\Android\platform-tools.
- Open a command window.
- Run
adb devices -l
to list the Android devices connected to the Windows 10 PC.
- Connect to the Android device.
- Navigate to C:\Users\USERNAME\AppData\Local\Android\tools
- Run
monitor.bat
and click on the connected device.
Ensure that your environment variables are set correctly from here.
Now your Android device is successfully connected to your Windows 10 PC and can be used to debug your application in Kony Visualizer Classic.
IMPORTANT: Before you do start debugging your Android app on the Windows 10 machine, ensure that Google Chrome is version 62 or earlier. Debugging will not work with version 63 and later.
Configure Google Chrome for debugging
To configure Google Chrome for Android USB debugging, do the following:
- Download Chrome version 61 from https://www.slimjet.com/chrome/google-chrome-old-version.php
- Uninstall the current version of Chrome.
- Stop all Google Processes in Task Manager.
- Disable Google Update from the Windows Startup.
- Stop the Google Update Services.
- Erase the directory Update in C:\Program Files (x86)\Google.
- Install Chrome 61 from the Downloads directory.
- Quit Google Chrome 61 as it starts.
- If Google Chrome has already started, it will begin the auto-update. In that case:
- Exit Google Chrome
- Navigate to C:\Program Files (x86)\Google\Chrome\Application and delete the file update_chrome.exe.
- Erase the directory Update in C:\Program Files (x86)\Google.
- Start Google Chrome 61 and check the version.
- To disable Google Chrome automatic updates if they are re-enabled, change the following registry key: Set HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Update\AutoUpdateCheckPeriodMinutes to the REG_DWORD value to 0.
- See https://support.google.com/chrome/a/answer/6350036#Policies for more information about disabling Google Chrome automatic updates.