Android Studio - no debuggable applications

前端 未结 16 2234
遇见更好的自我
遇见更好的自我 2020-12-02 04:42

I tried to debug a release version of my Android application but Android Studio failed to attach a debugger. (It could not find Android procces of my running application).

相关标签:
16条回答
  • 2020-12-02 05:20

    Working solution

    1.For testing run as debug if everything is correct process is attached and you can able to debug.Can see in the list

    2.If it says application not debuggable then alter gradle

    1. Repeat step 1

    4 .If not toggle Tools->Android->Enable ADB Integration and make it enabled.

    5.Restart adb server

    6.Dis connect and connect device It will list

    0 讨论(0)
  • 2020-12-02 05:23

    I used Mac to run Android Studio. I agree with @Kushal, I did not open Eclipse though.
    I shut off Parallels Desktop and other APPs which may use the same Gradle.

    0 讨论(0)
  • 2020-12-02 05:27

    Just click the "Bug" icon and you will be good to go.

    I had the same problem and that did the trick. hope it helps someone.

    0 讨论(0)
  • 2020-12-02 05:27

    You should check also in your AndroidManifest.xml file that there is no option like android:debuggable="false" in your application tag.

    <application
            android:icon="@drawable/icon"
            android:label="@string/app_name"
            android:debuggable="false">
    

    To make it work just remove this option.

    0 讨论(0)
  • 2020-12-02 05:29

    Multiple Options to do this:

    1.Tools->Android->Enable ADB Integration

    OR

    2.Build->Clean Project , the Build-> Rebuild Project. Then "adb kill-server" and "adb start-server"

    One of above will work.

    0 讨论(0)
  • 2020-12-02 05:30

    This is the problem I encountered.The AAR file you import may change the attribute of debuggable, So just remove the debuggable attribute in your Main App Manifest file. See the picture:

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