Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Android studio won't run app on Android Pie (9.0)?

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

like image 228
B Porr Avatar asked Aug 13 '18 19:08

B Porr


People also ask

Why is my emulator not working Android Studio?

If the emulator fails to launch due to the error vulkan-1. dll cannot be found , you probably need to update the emulator. To update the emulator in Android Studio, go to Tools > SDK Manager and install the latest stable version of Android platform.

What is the SDK version of Android 9?

Android 9 (API level 28)

Which Android version is best for Android Studio?

If you are using a previous canary release of Android Studio, make sure you update to Android Studio Canary 14 or higher. If you want to maintain a stable version of Android Studio, you can run the stable release version and canary release versions of Android Studio at the same time. Learn more.


2 Answers

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.

like image 178
Ereza Avatar answered Sep 22 '22 00:09

Ereza


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

like image 36
Allum Lee Avatar answered Sep 19 '22 00:09

Allum Lee