Breakpoints not working on Android Studio 3.3

后端 未结 4 1888
温柔的废话
温柔的废话 2020-12-15 18:02

After upgrading Android Studio to version 3.3 this week, some breakpoints are not being recognized as valid, and are not stopping the thread.

Am I missing anything?<

相关标签:
4条回答
  • 2020-12-15 18:35

    Found the answer with the help of @pskink. "If" statements are "invalid" locales for breakpoints. See the checkmarks below:

    0 讨论(0)
  • 2020-12-15 18:53

    I got the same problem. The problem is solved by upgrading Android Studio from 3.6.2 to 4.0.0

    0 讨论(0)
  • 2020-12-15 18:55

    it works for android 4.0.1. there is a button "attach debugger to android process" on top menu bar. click it and select the process. then the debugger will hit the break point.

    0 讨论(0)
  • 2020-12-15 18:57

    The issue is in the build tool chain (gradle, d8/r8). Problem is fixed in Android Studio 3.4 Beta 1 with gradle 3.4.0-beta01.


    Or a workaround solution for this issue can be used by locally updating the top-level build.gradle configuration for your project:

    buildscript {
        repositories {
            maven {
                url 'http://storage.googleapis.com/r8-releases/raw' // ADD THIS.
            }
        }
    
        dependencies {
            classpath 'com.android.tools:r8:1.3.55'  // ADD THIS. Must be before the Gradle Plugin for Android.
            classpath 'com.android.tools.build:gradle:3.3'
        } 
    }
    

    Once the next point release of Android Gradle Plugins takes place these changes can be removed.


    For more information, see: https://issuetracker.google.com/issues/122450679

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