14

I've upgraded my Google Pixel to Android 9.0/Pie. When I try to run an application from Android studio I don't see the Google Pixel in the list, there's only a null device named FA69R0306649. When I run my application, Android studio tries to install the app but then fails.

It looks like Android Studio is not recognizing the phone anymore. It Worked perfectly fine a couple of hours ago under Oreo (8.x).

Also, if I deploy the app on google play as alpha and then download it runs perfectly under 9.0/Pie.

Any suggestions to get the run/debug working with android 9.0 phone under Android Studio (3.1.4)?

Demo image

Mycoola
  • 1,135
  • 1
  • 8
  • 29
B Porr
  • 305
  • 2
  • 11
  • 2
    is usb debugging enabled? – Anubhav Gupta Aug 13 '18 at 19:34
  • What version of java are you running? – MathieuAuclair Aug 13 '18 at 19:44
  • /opt/android-studio/jre/bin/java -version openjdk version "1.8.0_152-release" OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) OpenJDK 64-Bit Server VM (build 25.152-b01, mixed mode) java -version openjdk version "10.0.1" 2018-04-17 OpenJDK Runtime Environment (build 10.0.1+10-Ubuntu-3ubuntu1) OpenJDK 64-Bit Server VM (build 10.0.1+10-Ubuntu-3ubuntu1, mixed mode) – B Porr Aug 13 '18 at 19:54
  • Debug is enabled (also re-generated the security certs). It works fine with my other mobiles (6.0, 8.1). It worked fine with the pixel till I updated it from 8.1 to 9.0. – B Porr Aug 13 '18 at 19:55
  • Can you check for update in android studio, I've just seen that this could be a driver issue – MathieuAuclair Aug 13 '18 at 19:55
  • What's your gradle version? – MathieuAuclair Aug 13 '18 at 19:56
  • Android studio is the latest version: 3.1.4. – B Porr Aug 13 '18 at 19:58
  • Gradle Version: 173.4301.25 – B Porr Aug 13 '18 at 20:01
  • Can you try to run a virtual device with android 9.0 and see if it works? This would get out of the way the hypothesis of AndroidStudio being the problem – MathieuAuclair Aug 13 '18 at 20:06
  • Aslo can you open your phone files from usb or is it completely jammed? – MathieuAuclair Aug 13 '18 at 20:07
  • 1
    Can open phone files, can transfer files, USB is def recognised. If I switch off USB debugging it disappears in Android Studio and when I re-enable it it's back. Just downloading latest Pixel emulator with API28. Bear with me. – B Porr Aug 13 '18 at 20:15
  • Just running the app via the emulator with API28 (Pie) and it all works perfectly fine. – B Porr Aug 13 '18 at 20:31
  • Installing the emulator didn't change the phone behaviour? If no I've run out of idea... – MathieuAuclair Aug 13 '18 at 20:43
  • Installation of the emulator didn't change anything. I suspect that Android Studio just won't recognise the phone just now. Which is weird as it's a google (!) one. – B Porr Aug 13 '18 at 21:33
  • I think I know what it is. It's the certificate. It seems so that 9.0 just won't ask for a new certificate even when I revoke it and/or delete the adbkey. Just out of interest I've deleted `~/.android/adbkey*` and all phones prompt for new security certs but not Android 9.0. So no chance to connect to it via adb. – B Porr Aug 13 '18 at 22:02
  • Done factory reset of the Pixel but it still won't ask for a security certificate. – B Porr Aug 14 '18 at 08:36
  • Definitely a problem with Android Studio, we need to report this as a bug on their site. I've done so and suggest everyone to as well, follow this link for information: https://developer.android.com/studio/report-bugs – Abhishek Kasireddy Aug 16 '18 at 14:42

6 Answers6

3

The Pixel running 9.0 requires USB 2.0 high speed. Apparently the Pixel running Android Pie cannot talk to the PC using neither USB 3.0 nor USB 1.1 full speed nor USB 2.0 running at full speed.

B Porr
  • 305
  • 2
  • 11
  • Actually, for me it was the other way around. I tried with a powered USB hub and it did work... but the direct cable to my laptop didn't, because it was USB 3. Just crazy! I guess the fact that it is powered made the difference. – shalafi Sep 15 '18 at 19:11
  • I'd be curious @shalafi if your USB hub is a USB 2.0 or USB 3.0. – B Porr Sep 16 '18 at 21:33
  • 1
    It appears to be that we need actually USB 2.0 high speed. Turned out that I have a fake USB 2.0 hub which actually only does full speed but not high speed. I replaced it with a proper USB 2.0 hub and now I can use the hub. – B Porr Sep 16 '18 at 21:34
  • You may want to edit your answer with that information – shalafi Sep 17 '18 at 07:39
  • That bug blew my mind!! it works on USB 2.0 , i'm Android One and just got the update yesterday! – Mohsen Jan 12 '19 at 07:59
3

I had a similar problem with my Xiaomi Mi A1. When I upgraded from Android 8.1 to 9 Android Studio would hang on "Installing application" forever. After trying revoking USB debugging authorization and completely reenabling developer options with no success it turned out a simple restart did it. Looks like there are multiple issues that lead to the same problem.

AXE
  • 8,335
  • 6
  • 25
  • 32
1

I had the same issue with a Xiaomi Mi A2 after upgrading to Android 9. If you are using Linux, try adding the udev permissions manually, following the steps described here. In my case, that was the only solution that worked.

Ereza
  • 1,434
  • 3
  • 15
  • 18
1

Please re-enable developer options again after the OS version upgrade, the device name will appear and it will be working fine again

Allum Lee
  • 11
  • 1
0

Install Sdk Platforms of Android 9. In Android studio Top Right besides Search Icon.Press That Icon of SDK manager and look either sdk platform is updated and installed.

-1

A simple solution just go to your Developer option on your phone , right below the USB Debugging option it says to "install via USB" just enable it and you are all set to install an app through android studio into your 9.0 device.