30

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

choman
  • 787
  • 1
  • 5
  • 24
  • 3
    I had this too. Just unplug it, click to run again, plug it and select your device. – Renan Bandeira Sep 21 '16 at 14:22
  • Today I had same issue and I proceed with install and continue and everything worked fine. – Faraz Ahmed Sep 21 '16 at 14:22
  • 2
    I have tried it several times , What does it want to install anyway ? what exactly is android 1.0 ? – choman Sep 21 '16 at 14:28
  • @RenanBandeira Thanks for the tip. My S6 asked me if I wanted to continue with USB debugging. As soon as I accepted this dialog, my Samsung appeared with the correct Samsung name in the list of devices (instead of an obscure ~10 digit number). My app run. Second attempt I had to select Install and Continue but it asked for the correct version of Android (platform 22) in my case. – SparkyNZ Jan 31 '17 at 20:29
  • But can i just turn off the alert/pop-up? And not ALL of instant run? I don’t want that specific Android SDK, have all these older SDKs take up so much space... – Sakiboy Nov 22 '17 at 00:15

11 Answers11

21

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.

Phares
  • 1,008
  • 13
  • 20
3

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

Nixon Kosgei
  • 788
  • 8
  • 13
2

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.

jok23
  • 286
  • 1
  • 5
  • 19
1

I got the same problem, but with an emulator. So the answer of unplug/plug the device is not applicable to me.

I deleted my emulator and create a new one in Android Studio. And, it's solved...

dmark
  • 320
  • 2
  • 13
1

Connect to your computer as MTP. After this Android Studio will recognize your device and SKD could install for it.l

1

I've solved this by changing the USB cable. The one given by Samsung is useless.

Marie Amida
  • 556
  • 1
  • 5
  • 14
0

I had the same problem but it solved after I approve the confirmation box for connecting the phone to the computer.

fakturk
  • 415
  • 7
  • 16
0

Running the android studio as sudo did the trick for me.

Tanmay Garg
  • 801
  • 11
  • 20
0

i got same problem , i have unplug my Device then uninstall the current app. Then plug the usb back and click run. i am good to go and my Problem

0

In this Video there is a Solution for Error running app: Instant Run requires 'Tools | Enable ADB integration' to be enabled. It worked for me to disable the instance run error messages.

Parham.D
  • 1,158
  • 2
  • 12
  • 31
0

In my case SDK location was incorrect.

I disabled Instant_Run option.

please check SDK version in local.properties file.

Shree
  • 787
  • 8
  • 23