8

After updating my android studio to version 4.2 I have no debuggable processes in Logcat to select. The build variant is debug for sure, and I already checked the other StackOverflow posts that address my issue but didn't find anything. Also, I tried older versions and it turned out that 4.1.3 doesn't have this issue and processes are visible, but I have this problem with the 4.2 and 4.2.1 and BumbleBee, It seems there is something wrong with new versions. I'm wondering if someone else had the same problem, Any help would be appreciated.

Note: Even debugger can't attach to the process

enter image description here

Farshad
  • 3,074
  • 2
  • 30
  • 44
  • just go to Tools-->Android-->Check Enable ADB Integration – Usama Altaf Jun 23 '21 at 09:53
  • run app again and leave the logcat do not minimize it – Usama Altaf Jun 23 '21 at 09:55
  • There is no such option in version 4.+, I think it is removed @UsamaAltaf – Farshad Jun 23 '21 at 10:18
  • view --> tool windows --> build variant .. then select debug – Majid Ali Jun 23 '21 at 10:43
  • My build variant is already debug @MajidAli – Farshad Jun 23 '21 at 10:46
  • https://stackoverflow.com/questions/41033849/no-debuggable-processes-in-logcat-when-phone-detected-by-android-studio – Majid Ali Jun 23 '21 at 10:52
  • Believe me, I already tried all of this before posting my question :) – Farshad Jun 23 '21 at 11:04
  • I faced this problem few days ago and I realized that the `Android Device Monitor (DDMS)` works well with no problem. So I think the problem is with new update of Android Studio. You can temporarily use DDMS from `%ANDROID_HOME%/tools/monitor.bat` but I dont know how to fix the bug :( – Homayoon Ahmadi Jul 19 '21 at 13:55
  • I guess downgrade to previous versions of Android Studio may fix the problem. I will inform you if I found the solution. Please tell me if you findout how to solve this. thanks in advance – Homayoon Ahmadi Jul 19 '21 at 13:55
  • 1
    @FarshadTahmasbi I don't know If you still have this issue, I just updated my android studio to BumbleBee and I had this problem. This answer helped me resolve it. [link](https://stackoverflow.com/a/71052598/2844833) – Sam Apr 01 '22 at 12:16

5 Answers5

7

This is a bug with some Windows OS datetime formats (such as Persian or Arabic formats) in Android Studio version 4.2 and higher.

We just need to use English (United States) format to avoid this problem. (Tested on version 4.2 and Arctic Fox both)

How to do: In windows 10 Go to Control Panel > Region > Formats and choose English (United States) from dropdown menu.

Edit: I have reported this bug in issue tracker. So you can give it a star to make sure Google will fix it in next release of Android Studio: https://issuetracker.google.com/issues/210299312

Homayoon Ahmadi
  • 1,181
  • 1
  • 12
  • 24
  • 1
    Thanks a lot ,I have been in this issue since long time , your solution works perfectly. – Radwa May 08 '22 at 09:07
4

I faced this issue by starting version 4.2 and I tried all stable and beta versions that came out after that and sadly problem still is there now. One thing that takes my attention is that everywhere I look up for a way to solve this I saw Iranian developers. because of that I guessed this problem (specially mean after version 4.2) is a sort of google sanctions

Update
as I guessed it's related to sanctions and you should change Region and Regional Format to another country to solve problem

Vahid
  • 1,588
  • 4
  • 22
  • 34
  • 1
    Thanks for the response, Eventually I had to install windows again and now it's working! I have no idea what the problem was. – Farshad Jul 02 '21 at 10:28
  • 1
    glad to hear that. I should do the same! – Vahid Jul 03 '21 at 03:05
  • @vahid How did you solved the problem? I faced this problem a few days ago after updating and I'm getting crazy of that! please help me! – Homayoon Ahmadi Jul 19 '21 at 13:59
  • 1
    @Homayoon Ahmadi In fact, I have not been able to solve this problem yet. after Farshad Tahmasbi mentioned I tried it on a fresh windows and works, but I do that on vmware just for testing. I'm looking for a way to solve it on my current windows without installing a fresh one – Vahid Jul 19 '21 at 14:18
  • @vahid Have you tried to use a previous version of Android Studio? – Homayoon Ahmadi Jul 19 '21 at 14:33
  • 1
    @Homayoon Ahmadi yes, versions before 4.2 working well but every version after that no – Vahid Jul 20 '21 at 03:23
  • This also solves another problem: https://stackoverflow.com/questions/68973640/android-studio-layout-designer-creates-numbers-in-persian/69222505#69222505 – Hussein Yaqoobi Sep 17 '21 at 11:15
1

I had same issue on specific version but can not remember right now. My solution was kill and restart adb.

In command go to folder: sdk/platform-tools/ Then run:

adb kill-server

And then run:

adb start-server

This should reconnect adb and you will find proper process to connect to in Android studio.

Mahdi
  • 6,139
  • 9
  • 57
  • 109
1

Had the same issue few days ago. Didn't see this method tried here so I'll try to describe it. Nothing helped me, I tried to invalidate cache, reinstall command line tools, Android Studio, update it to latest version.

What resolved the issue for me was going to File -> Manage IDE Settings -> Restore Default Settings and going through IDE setup again.

0

Well, As I mentioned in the comments I tried almost everything but It didn't work, Eventually, I had to install Windows again (Windows 10), I don't know why but I guess there was something wrong with the OS.

Note: I had this issue with Android Studio 4.2 and 4.2.1 but 4.1.3 was OK.

Dharman
  • 30,962
  • 25
  • 85
  • 135
Farshad
  • 3,074
  • 2
  • 30
  • 44