If you don't have these apps, then there's a problem with the installation.
#HOW TO TEST ANDROID STUDIO APP ON DEVICE INSTALL#
If you found these two apps:ĭelete them and then try to connect the device again (The Agent will install these apps automatically). Search the application in: "Settings" → "Apps" → search for uiautomator2. If the device is listed in the devices list in your Agent tab, but there is an issue recognizing device in recorder, check if the UIAutomator2 application is installed on the device. Is the device listed in the Agent's devices list? Try to re-install the Agent and check the ADB option.
![how to test android studio app on device how to test android studio app on device](https://evgenii.com/image/blog/2015-03-27-testing-ui-in-android-studio/0100_finished_app_screen.png)
If the adb.exe file does not exist, maybe you unchecked the ADB option while installing the Agent. Also, check if the USB Configuration is set to MTP/File transferring. If you don't see any device in the list, try to change the USB port/cable. You should see a list of all the connected devices. If the adb file exists, open the terminal/command-prompt from within this folder and run this command: (Windows) adb devices (OS X). Open the Agent's installation folder: "/Applications/TestProject Agent.app/Contents/Resources/android-sdk/platform-tools” and check if there is an ADB executable (adb file). Open the Agent's installation folder: C:\Program Files\TestProject Agent\android-sdk\platform-tools and check if there is an ADB executable (adb.exe file). The minimum version we support is Android 5.0 which is OS version 21. You can verify it by checking here: C:\Program Files\TestProject Agent\minicap\libs (make sure you can find the folder for that version). Make sure that your Android OS version (API Level) is greater or equals to the minimum OS Version that the Agent supports. When plugging in the USB cable to the Android device, you will be asked 3 things: Allow access to device data -> select "YES", Allow USB debugging -> select "OK" Then, scroll down and turn the animations off for: "Window animation scale", "Transition animation scale", "Animator duration scale". Inside the developer options, enable: "Stay Awake", "USB debugging", Under "Select USB configuration" select "MTP". You should get a message that says you enabled developer options.ī. Enable developer options: "Settings" -> "About Phone" -> repeatedly tapping the "Build number".
![how to test android studio app on device how to test android studio app on device](https://www.pcloudy.com/mobile-application-testing-documentation/integrations/ide/images/android-studio/Android_Manual_App_Test_Device_Page.png)
If your are experiencing some issues with your Android device, such as the following: Can't record a test, can't get the device mirroring or access to the application list in the device - Please try this troubleshooting article.ĭid you enable all the relevant settings in the developer options?Ī. The TestProject Agent identifies all the Android devices/emulators that are running and connected to your machine.