14

I am using Android Studio 3.1.3 and deploying my app on Lenovo Phab PB1-770M, (Android 5.1.1, API 22). Since yesterday, Android profiler has stopped detecting my device and even though I am able to run and debug on my device using AS, Profiler just cannot detect that the device is connected.

Android profiler screenshot

However, I am able to deploy my code and debug it on my device, as you can see in the logcat

enter image description here

Can anyone help me in this?

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Rajan Prasad
  • 1,582
  • 1
  • 16
  • 33
  • 7
    I am surprised what makes people downvote questions. Either you know the answer and can help, or you can't. What makes you downvote this question which is asking an actual issue whose solution I did not find anywhere on the internet. – Rajan Prasad Jul 11 '18 at 08:35
  • 2
    did you ever work this out? Have just had this happen on AS 3.5. – David Tchepak Sep 12 '19 at 02:25
  • @DavidTchepak I don't remember. I don't think I did though. – Rajan Prasad Sep 12 '19 at 06:08

6 Answers6

3

try adb root and adb remount, I just resolve the problem in this way.

Tyler2P
  • 2,324
  • 26
  • 22
  • 31
coderxiong
  • 31
  • 2
2
adb root
adb remount

Sometimes adb remount fails.

Apply the commands below to make it work.

adb disable-verity
adb reboot
adb root
adb remount
seym45
  • 21
  • 1
  • 3
1

Re-attach USB again. or

Invalidate Caches/Restart (File -> Invalidate Caches/Restart -> Invalidate and Restart).

Ryan M
  • 18,333
  • 31
  • 67
  • 74
CodeWithVikas
  • 1,105
  • 9
  • 33
  • Yup! Disconnecting and connecting the device again worked for me. In addition to this, I have connected my device over wifi network so I disconnected that device by using command `adb disconnect ` and then connecting it again with `adb connect ` – Feroz Khan Jun 08 '21 at 11:32
1

I know this is an old question, but maybe someone will encounter this problem on Android Studio 3.5 or newer.

In addition to the mentioned @CodeWithVikas answer, clearing of the LogCat helped me.

Slampy
  • 326
  • 1
  • 7
0

press in the first image where it says [DISCONNECTED] and search for your app package

Gastón Saillén
  • 12,319
  • 5
  • 67
  • 77
0

Maybe this guide solved anyone's problem cause it was my solution.

First go to Build -> Edit Build Types...

then in the build types tab, as below click on debug and then ok.

enter image description here

it will let you have a profiler for your app.

sina akbari
  • 618
  • 6
  • 7