This application does not have the debuggable attribute enabled in its manifest

AndroidAndroid Studio

Android Problem Overview


Cannot debug application com.domain.test on device samsung-gt_i9300-323020cfc86b804f. This application does not have the debuggable attribute enabled in its manifest. If you have manually set it in the manifest, then remove it and let the IDE automatically assign it. If you are using Gradle, make sure that your current variant is debuggable.

Android Solutions


Solution 1 - Android

Your comment has already hinted the answer to this post but since you have not selected an answer I'll write it down.

Change build variant from release to debug from android studio left corner.

Build variant tab's default position in AndroidStudio

Solution 2 - Android

A right solution is written in https://stackoverflow.com/a/25628789/2914140: open build.gradle of your module, type: 'debuggable true' (an example is below):

buildTypes {
    release {
        signingConfig signingConfigs.release
        debuggable true
        minifyEnabled true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
    }
    debug {
        applicationIdSuffix ".debug"
        debuggable true
    }
}

When you generate a signed APK from menu, you should edit 'release' branch changing 'debuggable true' to false in order to avoid a debuggable information.

Solution 3 - Android

In build.gradle

debug {
        debuggable true
        signingConfig signingConfigs.debug
    }

Solution 4 - Android

for whose came here searching TS's quote, check if you set Android Application in Run/Debug configuration popup. Not Native, like in my mistake.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionishqView Question on Stackoverflow
Solution 1 - AndroidKlausView Answer on Stackoverflow
Solution 2 - AndroidCoolMindView Answer on Stackoverflow
Solution 3 - AndroidJabar ShahidView Answer on Stackoverflow
Solution 4 - AndroiddjdanceView Answer on Stackoverflow