Cannot debug android app in Intellij: “Warning: de

2019-02-03 03:22发布

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.

best regards

[EDIT] I solved it, by updating my android SDK build tools to 18.1.1.

11条回答
ゆ 、 Hurt°
2楼-- · 2019-02-03 04:00

The same issues occured with me all of a sudden while debuging an app on my samsung galaxy S6

This is what worked for me : closed android studio killed adb , using adb kill-server removed all of my previous breakpoints(debug points) Restarted android studio and my phone Restaterted Mac did a debug without any breakpoint. Then again did debug by putting the breakpoints again in my code, Eureka it worked. Luckily it burned only half hour of mine.

查看更多
forever°为你锁心
3楼-- · 2019-02-03 04:02

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.

查看更多
Viruses.
4楼-- · 2019-02-03 04:07

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

查看更多
可以哭但决不认输i
5楼-- · 2019-02-03 04:09

For me this situation occured when device was connected via usb and adb tcpip was enabled (ADB in Wi-Fi mode).

Just run command adb usb with connected device and try to debug again.

查看更多
等我变得足够好
6楼-- · 2019-02-03 04:10

For those who are using Android-Studio: check your gradle file and product flavours and be sure that "debuggable" attribute in manifest is NOT set to false.

查看更多
Rolldiameter
7楼-- · 2019-02-03 04:10

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.

查看更多
登录 后发表回答