Android Studio 2.1 debugger does not show local variables

后端 未结 9 1501
野趣味
野趣味 2021-01-01 12:25

I am trying to debug over network in Android Studio. I connected via port 5555 and generally it is possible step through break points. But it often takes minutes just to exe

相关标签:
9条回答
  • 2021-01-01 12:50

    For me I had to set testCoverageEnabled to false like so:

    android {
        buildTypes {
            debug {
                ...
                testCoverageEnabled false
            }
        }
    }
    

    When I had this set to true, I was not getting local variables

    0 讨论(0)
  • 2021-01-01 12:50

    While this is not a permanent solution to this problem, my most consistent fix (after trying the other answers here to no avail) has simply been restarting my computer.

    0 讨论(0)
  • 2021-01-01 12:51

    Java 1.8 does not support accessing variable values.

    Update Gradle to version 2.2.0-beta3:

    In your gradle-wrapper.properties

    distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
    

    In your project build.gradle file

    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.0-beta3'
    }
    
    0 讨论(0)
提交回复
热议问题