Android studio does not detect my phone but adb does from command line (linux)
<p>I'm on a linux based on Debian OS, I have Android SDK and Android Studio installed. I can install app via command line with adb on my phone but, Android studio cannot detect my phone.</p>

<p>I only have this line in event log </p>

<pre><code>4:56:09 PM Platform and Plugin Updates: The following component is ready to update: Android SDK Platform-tools
</code></pre>

<p>But, when I update the SDK Platform-tools, I got this event log error </p>

<pre><code>Adb connection Error:EOF
    5:07:27 PM Connection attempts: 1
    5:07:28 PM Connection attempts: 2
    5:07:29 PM Connection attempts: 3
    5:07:30 PM Connection attempts: 4
    5:07:31 PM Connection attempts: 5
    5:07:32 PM Connection attempts: 6
    5:07:33 PM Connection attempts: 7
    5:07:34 PM Connection attempts: 8
    5:07:35 PM Connection attempts: 9
    5:07:36 PM Connection attempts: 10
    5:07:37 PM Connection attempts: 11
    5:07:37 PM '/usr/android-sdk-linux/platform-tools/adb,start-server' failed -- run manually if necessary
    5:07:37 PM adb restart attempts: 1
    5:07:37 PM /usr/android-sdk-linux/platform-tools/adb: 1: /usr/android-sdk-linux/platform-tools/adb: Syntax error: ")" unexpected
    5:07:38 PM Connection attempts: 12
    5:07:38 PM '/usr/android-sdk-linux/platform-tools/adb,start-server' failed -- run manually if necessary
    5:07:38 PM adb restart attempts: 2
    5:07:38 PM /usr/android-sdk-linux/platform-tools/adb: 1: /usr/android-sdk-linux/platform-tools/adb: Syntax error: ")" unexpected
    5:07:39 PM Connection attempts: 13
    5:07:39 PM '/usr/android-sdk-linux/platform-tools/adb,start-server' failed -- run manually if necessary
    5:07:39 PM adb restart attempts: 3
    5:07:39 PM /usr/android-sdk-linux/platform-tools/adb: 1: /usr/android-sdk-linux/platform-tools/adb: Syntax error: ")" unexpected
    5:07:40 PM Connection attempts: 14
    5:07:40 PM '/usr/android-sdk-linux/platform-tools/adb,start-server' failed -- run manually if necessary
    5:07:40 PM adb restart attempts: 4
    5:07:40 PM /usr/android-sdk-linux/platform-tools/adb: 1: /usr/android-sdk-linux/platform-tools/adb: Syntax error: ")" unexpected
    5:07:41 PM Connection attempts: 15
    5:07:41 PM '/usr/android-sdk-linux/platform-tools/adb,start-server' failed -- run manually if necessary
    5:07:41 PM adb restart attempts: 5
    5:07:41 PM /usr/android-sdk-linux/platform-tools/adb: 1: /usr/android-sdk-linux/platform-tools/adb: Syntax error: ")" unexpected
    5:07:42 PM Connection attempts: 16
</code></pre>

<p>Even if I got that error log from Android Studio, I am able to run adb fine from command line.</p>