title: "react-native log-android" Error "adb' logcat -c" failed. adb' logcat -c runs fine. [Ubuntu]
body: <p>I am trying to run  react-native log-android to test uploading google photos on my react-native phone app. I get the error</p>
  
  <pre><code>warn The following packages use deprecated "rnpm" config that will stop working from next release:
    - react-native-fetch-blob: https://github.com/wkh237/react-native-fetch-blob#readme
    - react-native-google-signin: https://github.com/react-native-community/react-native-google-signin
  Please notify their maintainers about it. You can find more details at https://github.com/react-native-community/cli/blob/master/docs/configuration.md#migration-guide.
  
  
  
  info Starting logkitty
  /bin/sh: 1: /home/diamonddoesnt/Library/Android/sdk/platform-tools/adb: not found
  error Command failed: '/home/diamonddoesnt/Library/Android/sdk/platform-tools/adb' logcat -c
  /bin/sh: 1: /home/diamonddoesnt/Library/Android/sdk/platform-tools/adb: not found
  . Run CLI with --verbose flag for more details.
  Error: Command failed: '/home/diamonddoesnt/Library/Android/sdk/platform-tools/adb' logcat -c
  /bin/sh: 1: /home/diamonddoesnt/Library/Android/sdk/platform-tools/adb: not found
  
  
  
  
  
      at spawnLogcatProcess (/home/diamonddoesnt/Desktop/prog/it project/react/project/COMP30022-DiamondDoesnt/family3/node_modules/logkitty/build/android/adb.js:36:11)
      at runAndroidLoggingProcess (/home/diamonddoesnt/Desktop/prog/it project/react/project/COMP30022-DiamondDoesnt/family3/node_modules/logkitty/build/android/adb.js:21:10)
      at logkitty (/home/diamonddoesnt/Desktop/prog/it project/react/project/COMP30022-DiamondDoesnt/family3/node_modules/logkitty/build/api.js:137:85)
      at Object.logAndroid [as func] (/home/diamonddoesnt/Desktop/prog/it project/react/project/COMP30022-DiamondDoesnt/family3/node_modules/@react-native-community/cli-platform-android/build/commands/logAndroid/index.js:37:44)
      at Command.handleAction (/home/diamonddoesnt/Desktop/prog/it project/react/project/COMP30022-DiamondDoesnt/family3/node_modules/react-native/node_modules/@react-native-community/cli/build/cliEntry.js:160:21)
      at Command.listener (/home/diamonddoesnt/Desktop/prog/it project/react/project/COMP30022-DiamondDoesnt/family3/node_modules/commander/index.js:315:8)
      at Command.emit (events.js:189:13)
      at Command.parseArgs (/home/diamonddoesnt/Desktop/prog/it project/react/project/COMP30022-DiamondDoesnt/family3/node_modules/commander/index.js:651:12)
      at Command.parse (/home/diamonddoesnt/Desktop/prog/it project/react/project/COMP30022-DiamondDoesnt/family3/node_modules/commander/index.js:474:21)
      at setupAndRun (/home/diamonddoesnt/Desktop/prog/it project/react/project/COMP30022-DiamondDoesnt/family3/node_modules/react-native/node_modules/@react-native-community/cli/build/cliEntry.js:210:24)
  
  </code></pre>
  
  <p>but when i type adb logcat -c or adb 'logcat -c into the console it works fine.</p>
  
  <pre><code>diamonddoesnt@diamonddoesnt-ThinkPad-X260:~/Desktop/prog/it project/react/project/COMP30022-DiamondDoesnt/family3$ adb logcat -c
  diamonddoesnt@diamonddoesnt-ThinkPad-X260:~/Desktop/prog/it project/react/project/COMP30022-DiamondDoesnt/family3$ adb' logcat -c
  
  </code></pre>
  
  <p>and i think i have included it into the path, my .bashrc looks like</p>
  
  <pre><code>## added
  export PATH="$PATH:~/.local/lib"
  export PATH="$PATH:~/.local/lib/python3.6/site-packages/yTermPlayer"
  export PATH="/home/diamonddoesnt/Desktop/prog/it project/flutter/flutter/bin:$PATH"
  export PATH="$PATH:~/Downloads/android-studio/bin"
  export ANDROID_HOME=$HOME/Library/Android/sdk
  export PATH=$PATH:$ANDROID_HOME/emulator
  export PATH=$PATH:$ANDROID_HOME/tools
  export PATH=$PATH:$ANDROID_HOME/tools/bin
  export PATH=$PATH:$ANDROID_HOME/platform-tools
  export PATH=$PATH:$ANDROID_HOME/platform-tools/adb
  export PATH=${PATH}:/Library/Android/sdk/tools:/path/to/android-sdk/platform-tools
  
  
  </code></pre>
  
  <p>So im not sure why its giving me this error.</p>