No debuggable processes android studio как исправить

Everyone!

I got so confused by android studio.
when I plug in my phone to debug apps, logcat can detect my phone, but I can not choose process. It said «no debuggable processes»,not common «no debuggable applications».

My phone is samsung s5 (android 6.0),rooted.

Any ideas?

Thanks!

Loïc Dumas's user avatar

asked Dec 8, 2016 at 7:17

kimichang's user avatar

3

I had a similar issue, when I was building an app, I could select the device in Logcat, but not the process. (same message, «No Debuggable Processes»)

The reason: I was building my app in release, then, when I changed the build variants to debug, I was able to select the process.

answered Jun 28, 2017 at 8:45

Loïc Dumas's user avatar

Loïc DumasLoïc Dumas

1,01610 silver badges17 bronze badges

3

You need to enable adb integration, just go to Tools—>Android—>Check Enable ADB Integration

It was a default feature a few versions ago but now it’s disabled by default

answered Apr 26, 2017 at 14:31

Zinc's user avatar

ZincZinc

1,00212 silver badges18 bronze badges

2

This happens time to time, try these three options in any order:

  1. Restart Android Studio ( preferably with invalidated caches as well )
  2. Restart your phone
  3. Deactivate and reactivate usb debugging

answered Dec 8, 2016 at 7:21

koperko's user avatar

koperkokoperko

2,43713 silver badges19 bronze badges

4

In my case, using Android Studio 3.1.3, I had to enable «Use libusb backend» checkbox at File—>Settings—>Build, Execution, Deployment—>Debugger

answered Jul 23, 2018 at 9:59

user3138806's user avatar

user3138806user3138806

5255 silver badges5 bronze badges

5

one of the reasons is that your application is marked as not debuggable in the build.gradle file

buildTypes{
    release{
        debuggable false
    }
}

another reason maybe you did not allow ADB integration.
You should have Tools->Android->Enable ADB Integration active

answered Oct 9, 2017 at 23:25

Khalid Taha's user avatar

Khalid TahaKhalid Taha

3,1445 gold badges26 silver badges43 bronze badges

1

  1. Android Studio -> Preferences -> Build, Exception, Deployment -> Debugger -> check «Use libusb backend» -> Apply -> OK
  2. Android Studio -> Preferences -> Build, Exception, Deployment -> Debugger -> uncheck «Use libusb backend» -> Apply -> OK
  3. oh, it’s just work now … (my android studio version is 4.1)

answered Oct 21, 2020 at 8:34

Michael Mao's user avatar

Michael MaoMichael Mao

4335 silver badges9 bronze badges

0

if you set minifyenabled to true you can be face with this error. So if you run your app release or debug then be sure that minifyenabled is false.

answered May 17, 2018 at 13:47

aligur's user avatar

aliguraligur

3,2183 gold badges33 silver badges49 bronze badges

Open terminal window at botton ba..
type
adb kill-server
adb start_server

answered May 26, 2020 at 13:17

Marco Aurelio Silva's user avatar

1

I finally found that I was running a release version of the App. So foolish…

answered Sep 4, 2017 at 8:33

civic.LiLister's user avatar

1

Maybe you have recently launched Android Device Monitor which might have prompted you to disable ADB integration. Usually, when you exit the Android Device Monitor, ABD integration is automatically re-enabled. But sometimes it isn’t, so please check Tools/Android/Enable ADB Integration

answered Apr 28, 2017 at 5:52

Mark's user avatar

MarkMark

7,3665 gold badges54 silver badges74 bronze badges

2

1. Open Edit Configurations:

enter image description here

2. Check the boxes:

enter image description here

Dharman's user avatar

Dharman

30.3k22 gold badges84 silver badges132 bronze badges

answered Feb 9, 2022 at 15:44

Владислав Шестернин's user avatar

You wouldn’t believe but this is really simple, took me long to find it out, but u don’t need any solution here, actually there is nothing wrong, just:

  1. Right click your MainActivity class, (or whatever you name it)
  2. Click on Run «MainActivity»
  3. Solved!

I think this happens when updating the gradle, at least for me.
Hope works for anyone looking around.
(Sorry for my english)

answered Mar 30, 2021 at 21:11

Juan Pedro Goicochea's user avatar

1

Click the «Bug» icon and that did the trick.

answered Apr 28, 2017 at 5:54

thatzprem's user avatar

thatzpremthatzprem

4,6871 gold badge33 silver badges41 bronze badges

Unplugged the test device from USB and plugged it back in, that did it for me. Restarting Android Studio had no effect.

answered Oct 4, 2020 at 11:20

tariq101's user avatar

tariq101tariq101

1092 silver badges6 bronze badges

answered May 19, 2021 at 0:01

Yasser JE's user avatar

If all does not work then try checking your manifest file, set:

android:debuggable="true".

Paul Roub's user avatar

Paul Roub

36.3k27 gold badges83 silver badges92 bronze badges

answered Sep 25, 2017 at 12:32

Rahul Jain's user avatar

Rahul JainRahul Jain

2762 silver badges11 bronze badges

Maybe U can reboot your PC/Mac. It works for me.

answered Sep 4, 2018 at 3:54

Scott Wang's user avatar

Scott WangScott Wang

4891 gold badge7 silver badges9 bronze badges

This may be the case, when you change cable with new one, then Restart is required for Android Studio. It will prompt USB debugging again.

answered Mar 5, 2019 at 7:06

Aks4125's user avatar

Aks4125Aks4125

4,5024 gold badges32 silver badges48 bronze badges

The following worked for me:

adb kill-server
adb devices // restart in case it doesn't do it by itself

answered Jan 29 at 3:59

frankelot's user avatar

frankelotfrankelot

13.4k16 gold badges53 silver badges89 bronze badges

You need to download usb drivers for your phone (in this case as I see, it is a samsung s5). The link to its drivers is this one:

http://samsungusbdriver.com/download/samsung-driver-v1-5-61-0

When you are there, follow the steps when downloaded and your phone will be recognised. Hope I could help ;).

answered Dec 8, 2016 at 8:47

DzefersonS's user avatar

4

1 Problem background

After bloggers have used Android Studio many times, there will always be a problem: no matter how many times you click the Run APP button in Android Studio, you can’t find debuggable apps in Logcat, and this will cause you to be unable to develop apps in real time. Check Logcat to locate problems in the APP development process. The problem with No debuggable processes is shown in the screenshot below:

Bloggers found a variety of solutions through Google, but some of the solutions are due to timeliness issues. For example, the solution in 2015 is:Tools-> Android -> Enable ADB Integration, But this option will not be found in Android Studio 4.1 at all in 2021.

The effective solution that bloggers have tried so far is to run in Terminaladb kill-serverCommand to restart Logcat:

Then you can select the debuggable application normally and display all the logs of the application:

References in this article:
[1]Can’t attach Android Studio’s debugger to Android process

Issue

Hellow Everyone!

I have problem with new version of android studio 2020.3.1 and android studio 4.2.2. when I plug in my phone to debug apps, logcat can detect my phone, but I can not choose process. It said «no debuggable processes«,not common «no debuggable applications».

I don’t think there is a problem with projects and devices because everything is fine on version 4.1 of Android Studio and this problem only occurs on version 2020.3.1.

This is a problem for all devices and all projects.
I checked all the following but the problem was not resolved:

1- debuggable in enable in gradle

2- choose debug in build variant

3- kill adb and strart it again

4- invalidate cache

Solution

For developers who are living in Iran it’s related to sanctions. after version 4.2 is released google use more ways to identify where we are come from and two possible of them is Region and Regional Format. therefore You should change them to another country and then update sdk to solve the problem.

for change region to united states in windows 10 :

setting -> time & language -> region -> select united states in country or region drop down .

Answered By – Farzad Kamali

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Update for Android Studio 1.0

Since Android Studio 1.0 was released (and a lot of versions between v1.0 and one of the firsts from the time of my previous answer) some things has changed.

My description is focused on adding external library project by hand via Gradle files (for better understanding the process). If you want to add a library via Android Studio creator just check the answer below with visual guide (there are some differences between Android Studio 1.0 and those from screenshots, but the process is very similar).

Before you start adding a library to your project by hand, consider adding the external dependency. It won’t mess in your project structure. Almost every well-known Android library is available in a Maven repository and its installation takes only one line of code in the app/build.gradle file:

dependencies {
     compile 'com.jakewharton:butterknife:6.0.0'
}

Adding the library

Here is the full process of adding external Android library to our project:

  1. Create a new project via Android Studio creator. I named it HelloWorld.
  2. Here is the original project structure created by Android Studio:
HelloWorld/
      app/
           - build.gradle  // local Gradle configuration (for app only)
           ...
      - build.gradle // Global Gradle configuration (for whole project)
      - settings.gradle
      - gradle.properties
      ...
  1. In the root directory (HelloWorld/), create new folder: /libs in which we’ll place our external libraries (this step is not required — only for keeping a cleaner project structure).
  2. Paste your library in the newly created /libs folder. In this example I used PagerSlidingTabStrip library (just download ZIP from GitHub, rename library directory to „PagerSlidingTabStrip» and copy it). Here is the new structure of our project:
HelloWorld/
      app/
           - build.gradle  // Local Gradle configuration (for app only)
           ...
      libs/
           PagerSlidingTabStrip/
                - build.gradle // Local Gradle configuration (for library only)
      - build.gradle // Global Gradle configuration (for whole project)
      - settings.gradle
      - gradle.properties
      ...
  1. Edit settings.gradle by adding your library to include. If you use a custom path like I did, you have also to define the project directory for our library. A whole settings.gradle should look like below:

    include ':app', ':PagerSlidingTabStrip'
    project(':PagerSlidingTabStrip').projectDir = new File('libs/PagerSlidingTabStrip')
    

5.1 If you face «Default Configuration» error, then try this instead of step 5,

    include ':app'
    include ':libs:PagerSlidingTabStrip'
  1. In app/build.gradle add our library project as an dependency:

    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        compile 'com.android.support:appcompat-v7:21.0.3'
        compile project(":PagerSlidingTabStrip")
    }
    

6.1. If you followed step 5.1, then follow this instead of 6,

    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        compile 'com.android.support:appcompat-v7:21.0.3'

        compile project(":libs:PagerSlidingTabStrip")
    }
  1. If your library project doesn’t have build.gradle file you have to create it manually. Here is example of that file:

        apply plugin: 'com.android.library'
    
        dependencies {
            compile 'com.android.support:support-v4:21.0.3'
        }
    
        android {
            compileSdkVersion 21
            buildToolsVersion "21.1.2"
    
            defaultConfig {
                minSdkVersion 14
                targetSdkVersion 21
            }
    
            sourceSets {
                main {
                    manifest.srcFile 'AndroidManifest.xml'
                    java.srcDirs = ['src']
                    res.srcDirs = ['res']
                }
            }
        }
    
  2. Additionally you can create a global configuration for your project which will contain SDK versions and build tools version for every module to keep consistency. Just edit gradle.properties file and add lines:

    ANDROID_BUILD_MIN_SDK_VERSION=14
    ANDROID_BUILD_TARGET_SDK_VERSION=21
    ANDROID_BUILD_TOOLS_VERSION=21.1.3
    ANDROID_BUILD_SDK_VERSION=21
    

    Now you can use it in your build.gradle files (in app and libraries modules) like below:

    //...
    android {
        compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
        buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION
    
        defaultConfig {
            minSdkVersion Integer.parseInt(project.ANDROID_BUILD_MIN_SDK_VERSION)
            targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)
        }
    }
    //...
    
  3. That’s all. Just click‚ synchronise the project with the Gradle’ icon synchronise with Gradle. Your library should be available in your project.

Google I/O 2013 — The New Android SDK Build System is a great presentation about building Android apps with Gradle Build System: As Xavier Ducrohet said:

Android Studio is all about editing, and debugging and profiling.
It’s not about building any more.

At the beginning it may be little bit confusing (especially for those, who works with Eclipse and have never seen the ant — like me ;) ), but at the end Gradle gives us some great opportunities and it worth to learn this build system.

Updated to Android Studio 3.0
Please share missing items in comments.

A late answer but this alternative answer was not right for us …

So, here’s our gitignore file:

#built application files
*.apk
*.ap_
*.aab
                           
# files for the dex VM
*.dex
                            
# Java class files
*.class
                            
# generated files
bin/
gen/
                            
# Local configuration file (sdk path, etc)
local.properties
                        
# Windows thumbnail db
Thumbs.db
                
# OSX files
.DS_Store
                            
# Android Studio
*.iml
.idea
#.idea/workspace.xml - remove # and delete .idea if it better suit your needs.
.gradle
build/
.navigation
captures/
output.json 
    
#NDK
obj/
.externalNativeBuild

Since Android Studio 2.2 and up to 3.0, new projects are created with this gitignore file:

*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
.externalNativeBuild

Deprecated — for older project format, add this section to your gitignore file:


/*/out
/*/*/build
/*/*/production
*.iws
*.ipr
*~
*.swp

This file should be located in the project’s root folder and not inside the project’s module folder.

Edit Notes:

  1. Since version 0.3+ it seems you can commit and push *.iml and build.gradle files. If your project is based on Gradle: in the new open/import dialog, you should check the "use auto import" checkbox and mark the "use default gradle wrapper (recommended)" radio button. All paths are now relative as @George suggested.

  2. Updated answer according to @128KB attached source and @Skela suggestions

Your privacy

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

Понравилась статья? Поделить с друзьями:
  • Как найти яндекс на телевизоре филипс
  • Как работодателю найти причину для увольнения
  • Как найти сколько это процентов калькулятор
  • Как найти на радио шансоне песню
  • Как найти мишу яковлева