Not Able To Debug App In Android Studio

前端 未结 30 2579
小蘑菇
小蘑菇 2020-12-01 02:30

I am making an app in Android Studio, now trying to debug it through adb. When I click on the word Android and the logo on the bottom bar, logcat comes up and recognizes my

相关标签:
30条回答
  • 2020-12-01 03:14

    I solved this issue after doing the following steps:

    Go to Tools==>android==>Disable ADB integration and enable it again.

    After that, unplug USB from device and plug in again.

    Finally press shift + F9

    0 讨论(0)
  • 2020-12-01 03:14
        <application android:debuggable="true">
    </application>
    

    This no longer works! No need to use debuggable="true" in manifest.

    Instead, you should set the Build Variants to "debug"

    In Android Studio, go to BUILD -> Select Build Variant

    Now try debugging. Thanks

    0 讨论(0)
  • 2020-12-01 03:14

    One case where you can be unable to debug an application in Android Studio is when you have the "release" build variant selected. Happened to me - Gradle builds a release version of the app (which is not debuggable) and then Android Studio fails at trying to connect the debugger.

    0 讨论(0)
  • 2020-12-01 03:15

    This worked for me:

    1. Close Android Studio.
    2. Open the shell, and write:

      adb kill-server

      adb start-server

    0 讨论(0)
  • 2020-12-01 03:16

    For me, it happened when I used Proguard, so by trying all the solutions I cleaned my project and pressed the debug button on Android Studio and it started debugging

    0 讨论(0)
  • 2020-12-01 03:17

    If your Application used to be debuggable, and suddenly it's no more debuggable.Here is my solution

    1. disable and enable USB debug switch in your phone.
    2. Uninstall your application.
    3. click Run in Android Studio.
    0 讨论(0)
提交回复
热议问题