8

I have tried everything and the Android debugging still will not work. On my phone it says "Waiting for Debugger" in a alert box but when I try to attach the debugger it does not allow me. I can receive logcat messages but cannot look at cpu usage and memory usage. I also have tried to use DDMS but that also does not work. enter image description here enter image description here I have tried the following:

  1. I added debuggable true to build.gradle
  2. I enabled ADB integration
  3. Updated Android Studio to latest version
  4. Updated SDK Tools to latest version
  5. Added <uses-permission android:name="android.permission.SET_DEBUG_APP"></uses-permission> to manifest
  6. Enabled USB debugging on phone
  7. Restarted Android Studio and ran adb kill-server
  8. Restarted Phone and Computer
  9. Tried different USB ports on computer
  10. Disabled ADB integration and enabled it multiple times

Is there anything else I can try?

3
  • sorry to hear this is happening to you. i've also experienced serious, stubborn adb failures. eventually, i completely uninstalled android studio and the sdk and then reinstalled it all. i know that's extreme, but it worked. afterward, i wished i had just done that in the first place. it would have taken less time. sorry i don't have a better answer for you. good luck. Commented Apr 28, 2017 at 0:46
  • Other than 'Error' in the drop down menu (first image), did you try changing it to Verbose? Debug? or Info? And doesn't the log show other messages from running apps in your device? Commented Apr 28, 2017 at 3:18
  • @ADimaano It shows logcat but does not show memory usage and other statistics Commented Apr 28, 2017 at 4:28

1 Answer 1

2

I ran into this exact problem and realized that I had disabled the Android NDK Support plugin in Android Studio. Once I enabled it and restarted, I was able to debug my applications again. Hope this helps!

Preferences > Plugins > Android NDK Support

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.