choman
choman

Reputation: 787

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

Upvotes: 30

Views: 20555

Answers (11)

Shree
Shree

Reputation: 795

In my case SDK location was incorrect.

I disabled Instant_Run option.

please check SDK version in local.properties file.

Upvotes: 0

Parham.D
Parham.D

Reputation: 1168

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.

Upvotes: 0

Marie Amida
Marie Amida

Reputation: 556

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

Upvotes: 1

Gergely Herpai
Gergely Herpai

Reputation: 11

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

Upvotes: 1

sifat ullah shah
sifat ullah shah

Reputation: 67

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

Upvotes: 0

Tanmay Garg
Tanmay Garg

Reputation: 841

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

Upvotes: 0

dmark
dmark

Reputation: 320

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...

Upvotes: 1

jok23
jok23

Reputation: 296

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.

Upvotes: 2

fakturk
fakturk

Reputation: 425

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

Upvotes: 0

Nixon Kosgei
Nixon Kosgei

Reputation: 937

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

Upvotes: 3

Phares
Phares

Reputation: 1028

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.

Upvotes: 21

Related Questions