Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio 4.1 debugger break points not working

After updating my android studio from version 4.0 to 4.1 the debugger break points don't work anymore:

Screenshot

like image 540
Ahmed Nezhi Avatar asked Oct 16 '20 10:10

Ahmed Nezhi


2 Answers

I had to rollback. No one has time for this sh**...

  1. Uninstall Android Studio
  2. Reboot
  3. Download & Install AS 4.0.2: https://redirector.gvt1.com/edgedl/android/studio/install/4.0.2.0/android-studio-ide-193.6821437-windows.exe or https://developer.android.com/studio/archive
  4. Change Gradle classpath to 4.0.2 in build.gradle

All better now...

like image 177
Aace Avatar answered Nov 13 '22 21:11

Aace


I would try the following:

  • Try the 'attach debugger' option with the app running, via the button on the toolbar, or finding the action (cmd/ctrl shift + a and type 'attach debugger to android process').

  • Make sure that debuggable true is set in your module/build.gradle for the flavor you are currently using, (Check the build variants tab).

  • Be sure that the Android Gradle Plugin points to the same version that Android Studio has, this is com.android.tools.build:gradle:4.1.0 for Android Studio 4.1.

  • Clear data, uninstall the app, and run 'Invalidate Caches & restart' from Android Studio.

  • Make sure you don't have the stable and the canary versions of A.S running (I faced debugger issues in the past because of that).

  • Restart adb? (adb kill-server && adb start-server).

  • Reboot / Switch the emulator / device?.

  • Reboot the computer?.

  • If all of the above fails, I would also try this script: https://github.com/rock3r/deep-clean

like image 25
saulmm Avatar answered Nov 13 '22 23:11

saulmm