skip to Main Content

I recently got a new Mac M2 from my employer. Now i installed Android Studio and wanted to run my Espresso and UIAutomator Tests for the android part of my kotlin multi platform app. But when i start the test, i always get the following message:

adb connection not available, or was terminated

When i looked inside the terminal and wrote:

adb i got this reply from my zsh:
zsh: killed adb

Could it be that adb is not working on macs with apple silicon chips? Or did i forget to install something?
I installed the platform-tools once with Android Studio and, as this did not work, i uninstalled them with Android Studio again and installed them with homebrew.
Both installations had the same behaviour as described above.

I also tried to use Bash instead of ZSH, but the result was the same. the ADB process instantly got killed.

If you need any additional information, just ask.
I really hope that someone could help me.
Best regards.
Maverick

2

Answers


  1. Chosen as BEST ANSWER

    So the issue was not anything regarding a path, but a wrong policy in Cylance (a software my company uses to protect the computers). After the correct policy was set, i only had to give Cylance full hd access to actually save the new policy and then it worked fine.


  2. Check the output of

    file /path/to/your/adb
    

    includes

    adb: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64]
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search