Search code examples
androidadb

Android Studio - Cant run script in external tool


I cant run a script in my Android Studio, using external tool.

Its giving me

/Users/me/Library/Android/sdk/platform-tools/adb: adb shell setprop debug.firebase.analytics.app adb: unknown command adb

but when I try to run adb devices anywhere, in any terminal, its working fine..

Does anyone know how to fix it?

EDIT

Looking to the error response:

/Users/me/Library/Android/sdk/platform-tools/adb: -> (path where script is running in terminal)

adb shell setprop debug.firebase.analytics.app -> script itself

adb: unknown command adb -> Error

Here is how I'm using the external tool enter image description here


Solution

  • You have double adb based on your updated post.

    In the external tools editor, where you add the Arguments make sure that you don't have adb in that line.

    The argument has to be only shell setprop debug.firebase.analytics.app without adb since you define the adb in the "Program" section