Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to deploy app using Device Chooser after upgrading Android Studio to 1.4

This morning I upgraded the Android Studio from 1.3.[something] to 1.4. After the upgrade, when I runned the app at the bottom of the Device Chooser dialog there is a message in red "The selected device is incompatible." and the OK button is disabled.

I have multiple devices here with different android versions. On some of them which are having android 5.0+ installed there was OK text in the "Compatible" column in the Choose a running device list. After the upgrade, all are "incompatible".

Can someone please advice what to do? Should I make a fresh installation of the older Android Studio (1.3) and continue to work?

Screenshot

like image 996
Marjan Slavkovski Avatar asked Oct 05 '15 09:10

Marjan Slavkovski


2 Answers

After struggling for some time, i have found a workaround: Instead of using the Device Chooser dialog, you have to deploy it directly. Steps to fix the issue:

  1. Open the Run/Debug configurations dialog.
  2. Select your app configuration from the tree on the left.
  3. In the General tab, locate the Target Device group box and select the USB Device radio button.

When you run the app it will not display the Device Chooser dialog, it will deploy the app directly on the connected android device directly.

Screenshot

like image 107
Marjan Slavkovski Avatar answered Oct 11 '22 14:10

Marjan Slavkovski


For those who still got the error when running the Mobile app, it's an issue with Android Studio 1.4.

https://code.google.com/p/android/issues/detail?id=187665

Apparently, the issue is this line:

<uses-feature android:name="android.hardware.type.watch" android:required="false"/>

Android studio seems to be ignoring the android:required="false" part. Hopefully, it'll be fixed in subsequent updates.

I fixed the issue temporarily by invalidating cache and restarting Android Studio (Android Studio -> File -> Invalidate Caches/Restart -> Invalidate Cache and Restart). However, if this doesn't work, then you can try by bypassing the dialog in your run configurations and choosing either the device directly or emulator.

like image 42
SunnySydeUp Avatar answered Oct 11 '22 13:10

SunnySydeUp