EmMper
EmMper

Reputation: 135

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

Upvotes: 2

Views: 5747

Answers (4)

artenson.art98
artenson.art98

Reputation: 1605

Try restarting your ADB service by running the following command in your terminal:

adb kill-server && adb start-server

Upvotes: 0

user8128167
user8128167

Reputation: 7676

Since running apps on an emulator is slow, sometimes you may have more than one instance of your app on the emulator which will cause a problem. Just delete the existing emulator and create a new one, or you can instead just wipe the data on an existing emulator:

enter image description here

Upvotes: 0

Bruce Lin
Bruce Lin

Reputation: 121

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
    }
}

Upvotes: 5

lantian
lantian

Reputation: 176

Mabe you can Close the AndroidStudio.And then restart the adb service.try again.

Keep your application installed is a Debug mode.

if is done,it will be work. I tried.

Upvotes: 0

Related Questions