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

后端 未结 12 2300
无人及你
无人及你 2020-12-24 05:44

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

相关标签:
12条回答
  • 2020-12-24 06:28

    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.

    0 讨论(0)
  • 2020-12-24 06:28

    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.

    0 讨论(0)
  • 2020-12-24 06:30

    I used adb kill-server in the console to get the Logcat to appear. Running Android Studio 1.02.

    0 讨论(0)
  • 2020-12-24 06:30

    First make sure you close any application use ADB , DDMS

    like if you open Eclipse with android studio

    Second restart your ADB from terminal

    adb kill-server
    adb start-server
    

    if you cannt find terminal use this image to guide you

    if this doesn't work with you close android studio and open it again

    the cause of error , many application share ADB this why you cant start debugging

    0 讨论(0)
  • 2020-12-24 06:31

    You can restart ADB in windows without writing any commands.

    Just open Task Manager

    Sort the list by name

    Find process named "adb" Right click on it and then select "End Task" Done

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

    0 讨论(0)
  • 2020-12-24 06:34

    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.

    0 讨论(0)
提交回复
热议问题