Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android debugging not working in Android Studio

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?

like image 526
KevinZ Avatar asked Apr 28 '17 00:04

KevinZ


1 Answers

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

like image 106
subathra Avatar answered Oct 16 '22 20:10

subathra