Search code examples
androidprofiler

Android Profiler: No debuggable processes


It can find my device, but without any debuggable process. It's not the first time this problem occurred. But it still worked yesterday, I used profiler to observe my app's memory info. And when I try to debug my app, the process is debuggable. I tried all solutions just like restart Android Studio, none worked. Does anyone know why?

Android Profiler: No debuggable processes

Debugger: there is a debuggable process


Solution

  • Works for me:

    In build.gradle(:app) -> find "buildTypes" -> to "debug" section -> set it to "true" -> done

    buildTypes {
        release {
            debuggable false
            minifyEnabled true
            shrinkResources true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.config
        }
        debug {
            debuggable true
        }
    }