Integrating Bluestacks with Android Studio for App Testing

Integrating Bluestacks with Android Studio for App Testing

21 May 2024 Stephan Petzl Leave a comment Tech-Help


For Android developers, testing applications in a simulated environment is a crucial part of the development process. While Android Studio comes with its default emulator, some developers prefer using third-party emulators like Bluestacks for various reasons, such as better performance, access to specific features, or personal preference. This guide provides a solution to integrate Bluestacks with Android Studio, allowing you to test your applications smoothly.

Connecting Bluestacks to Android Studio

To connect Bluestacks with Android Studio, follow these steps:

  1. Ensure that Bluestacks is installed on your system.
  2. Open Bluestacks and navigate to the settings menu.
  3. Under the ‘Advanced’ section, look for the ‘Enable Android Debug Bridge (ADB)’ option and enable it.
  4. Locate the ADB path provided by Bluestacks and note it down. It is usually indicated in the ADB settings within Bluestacks.
  5. Close Android Studio if it’s currently running.
  6. Go to your ADB installation directory (default location is usually %LocalAppData%\Android\sdk\platform-tools).
  7. Open a command prompt or terminal window in this directory.
  8. Execute the command: adb connect localhost:[port], replacing ‘[port]’ with the port number provided by Bluestacks ADB settings.
  9. Restart Android Studio. Bluestacks should now appear as an available emulator when you attempt to run your app.

If you encounter any issues with the connection, ensure that Bluestacks is running before you start Android Studio. Additionally, it may be necessary to verify that the ADB path in Bluestacks matches the ADB installation directory on your system.

Practical Use Case with Repeato

While integrating Bluestacks with Android Studio is a step towards efficient app testing, it’s equally important to have robust test automation in place. This is where Repeato comes into play.

Repeato is a no-code test automation tool for iOS and Android that streamlines the creation, execution, and maintenance of automated tests for your apps. By leveraging computer vision and AI, Repeato offers a fast and intuitive way to edit and run tests, ensuring that your applications perform as expected on a variety of devices, including emulators like Bluestacks.

With ADB on board, Repeato allows you to execute ADB commands via script steps, enabling precise timing and sequencing of commands within your test scenarios. This integration enhances your testing capabilities, particularly when working with emulators or testing scenarios that require specific device interactions.

To learn more about how Repeato can complement your development and testing workflow, visit our documentation or explore our blog for insights and best practices.


Integrating Bluestacks with Android Studio enhances your testing environment by providing an alternative emulator that may better suit your development needs. By following the steps outlined above, you can smoothly run and test your Android applications within Bluestacks. Additionally, incorporating a tool like Repeato into your workflow further streamlines the testing process, making it more efficient and reliable.

Like this article? there’s more where that came from!