Cannot debug android app in Intellij: "Warning: debug info can be unavailable."

Viewed 26048

I am trying to debug an app with Intellij 13.0 on Windows 7. Whenever I start debugging I get the following warning:

Warning: debug info can be unavailable. Please close other application using ADB: Monitor, DDMS, Eclipse"

I have tested it on a device and in the emulator. The only thing I have open is Intellij. I tried also with closing adb before I start debugging, but nothing changed.

13 Answers

Turn the USB Debugging on Device in Developer Options to off. And then switch it back on. This solved the issue in my case.

UPDATE

One more thing which fixed my case was clearing all existing breakpoints. And then trying to debug again.

You can restart ADB in windows without writing any commands.

Just open Task Manager

Sort the list by name

Find process named "adb" enter image description here Right click on it and then select "End Task" Done

Next time you run any app the adb will start with a new instance.

A pretty straight forward solution is running the following commands in the command Terminal of Android Studio :

adb kill-server
adb start-server

and then try debugging again. It should be working now.

This is a problem of ADB connections as sometimes ADB cache a dead connection on your real/virtual device and due to which the port is busy and u cannot connect to it.

The simplest solution to this is RESTART your ANDROID phone that's it.

This happened to me and the thing I did was to set

android:debuggable="true"

in <application> tag...like:

    <application android:allowBackup="true"
             android:label="@string/app_name"
             android:screenOrientation="portrait"
             android:largeHeap="true"
             android:icon="@drawable/icon"
             android:debuggable="true"
>

This fixed the problem with later SDKs.

Below steps worked for me(If you are connected via USB debugging),

  1. Go to the Developer options of the phone
  2. Disable USB debugging and all other authorisations for USB debugging.
  3. Enable back all

Now try to debug again, hope it will work.

Related