Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Instant run issue on Android Studio 2.2

I have updated my android studio to 2.2, Since then I get this strange issue when running the studio gives me error Instant Run requires that the platform corresponding to your target device (Android 1.0) is installed. I am using Note 4 on android 6.0.1. Why is this error happening ?

Instant run issue

like image 350
choman Avatar asked Sep 21 '16 14:09

choman


People also ask

Does Android Studio still have instant run?

Instant Run is currently available only in Android Studio 2.0, and higher. We will continue to improve the feature in subsequent releases.

Why Android Studio is not running the app?

Unplug your device from the USB port on the computer. Restart the device by powering off and back on. Verify that Settings => Developer options => USB Debugging is enabled. Quit and re-launch Android Studio.

What to do if Android Studio is not opening?

How do I fix launching Studio error? Open Start menu > computer > System Properties > Advanced System Properties. In the Advanced tab > Environment Variables, add a new system variable JAVA_HOME that points to your JDK folder, for example, C:\Program Files\Java\jdk1. 7.0_21.


3 Answers

If you have connected your android device, unplug it then uninstall the current app. Then plug the usb back and click run. You good to go.

like image 102
Phares Avatar answered Oct 13 '22 10:10

Phares


Am also facing similar issues since i downloaded the upgrade patch for android studio 2.2 i have noticed it happens when Android monitor says device offline Android device says offline yet connectet

The reason why the device goes offline and yet its connected properly i don't know yet. When i click download i get this error Package id platforms;android-1 I currently sole this temporarily by checking if android monitor says device offline, if yes i unplug the USB and plug it back in else it just runs fine

like image 3
Nixon Kosgei Avatar answered Oct 13 '22 09:10

Nixon Kosgei


I had the same problems as you all and I solved it.

If you get an error like 'error Package id platforms;android-1 ' you must go to: Tools -> Android->SDK Manager, and thed to SDK Platforms. Make sure that 'Show Package Details' tab is checked (so that you can see all packages) and Android 1.1 package installed. enter image description here

Otherwise just install it like all others packages. After you do this, restart Android Studio, unplug/plug phone. You will be asked then to conform something at your device, say ok and you fixet problem.

like image 2
jok23 Avatar answered Oct 13 '22 10:10

jok23