title: Unable to debug in android studio (Error running app: java.lang.Error : no Connectors loaded. Check your JDK installation.)
body: <p>I am using Android studio 1.02 on Linux Mint. I was able to successfully debug my code on android emulators and my device LG G2 till yesterday. Today when I started my workstation I cant 'debug' my code.</p>
  
  <p>It says: </p>
  
  <blockquote>
    <p>Error running navigationbar: java.lang.Error : no Connectors loaded.
    Check your JDK installation.</p>
  </blockquote>
  
  <p>On my device I can see the message:</p>
  
  <blockquote>
    <p>Waiting for the Debugger</p>
    
    <p>Application NavigationBar (com.example.test.navigationbar) is
    waiting for the debugger to attach.</p>
  </blockquote>
  
  <p>and following are the console messages </p>
  
  <blockquote>
    <p>Waiting for device. Target device: lge-lg_My_DEVICE'sID
    Uploading file    local path:
    /path-to-apk/apk/navigationbar-debug.apk
      remote path: /data/local/tmp/com.example.test.navigationbar
    Installing com.example.test.navigationbar DEVICE SHELL COMMAND: pm
    install -r "/data/local/tmp/com.example.test.navigationbar" pkg:
    /data/local/tmp/com.example.test.navigationbar Success</p>
    
    <p>Launching application:
    com.example.test.navigationbar/com.example.test.navigationbar.NavigationBar.
    DEVICE SHELL COMMAND: am start -D -n
    "com.example.test.navigationbar/com.example.test.navigationbar.NavigationBar"
    -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Starting: Intent { act=android.intent.action.MAIN
    cat=[android.intent.category.LAUNCHER]
    cmp=com.example.test.navigationbar/.NavigationBar }</p>
    
    <p>Waiting for process: com.example.test.navigationbar Can't start
    debugging.</p>
  </blockquote>
  
  <p>As advices on some older posts. I have already tried :</p>
  
  <ol>
  <li>android:debuggable="true"</li>
  <li>Restarting android studio and my PC</li>
  <li>Uncheck and then select again  'Enable ADB integration'</li>
  <li>Try to debug on emulator(gives the same problem)</li>
  <li>Make a new program from the android-studio's templates and try to debug it</li>
  </ol>
  
  <p><strong>On the other hand if I 'run' my application. It gives no such error.</strong></p>
  
  <p>Finally, if I run android.sh form my terminal then I get this message after I choose my device:</p>
  
  <blockquote>
    <p>java.util.ServiceConfigurationError: com.sun.jdi.connect.Connector:
    Provider com.sun.tools.jdi.SunCommandLineLauncher could not be
    instantiated java.util.ServiceConfigurationError:
    com.sun.jdi.connect.Connector: Provider
    com.sun.tools.jdi.RawCommandLineLauncher could not be instantiated
    java.util.ServiceConfigurationError: com.sun.jdi.connect.Connector:
    Provider com.sun.tools.jdi.SocketAttachingConnector could not be
    instantiated java.util.ServiceConfigurationError:
    com.sun.jdi.connect.Connector: Provider
    com.sun.tools.jdi.SocketListeningConnector could not be instantiated</p>
  </blockquote>
  
  <p>Kindly advice steps to resolve this issue.
  Thanks</p>
  
  <p>Some links I already tried:</p>
  
  <ol>
  <li><a href="https://stackoverflow.com/questions/16753939/not-able-to-debug-app-in-android-studio">Not Able To Debug App In Android Studio</a></li>
  </ol>