Search code examples
androidandroid-studioandroid-espressoandroid-espresso-recorder

How i can connect my real app an android studio so i can run espresso test on


I have an android app that is already installed to my Nox emulator, I have the whole file with its installation and setup - not folder with files , just the installation file - I need to connect it to android studio so I can run espresso test on it .

I tried to put the app file in android studio projects but it didn't work .


Solution

  • Android Studio needs an ADB connection to the emulator. Instructions for this are on XDA, https://forum.xda-developers.com/tools/android-studio/how-to-connect-android-studio-nox-app-t3241330

    • Start Nox App Player, go to Nox system settings >> turn root mode on >> save changes and restart Nox

    • Go to Android settings in Nox >> About Tablet >> Keep clicking Build number until it shows that you are now a developer >> go back to Android settings and you will find the developer options now.

    • Go to developer options >> tick USB debugging

    • Now in cmd go to the bin folder under the installation path of Nox App Player, input this command: nox_adb.exe connect 127.0.0.1:62001. You will see a successfully connected notice in cmd. IF: it shows null or offline, just re-start Nox and try again

    • Now Android studio will detect Nox.