简体   繁体   中英

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 ?

即时运行问题

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.

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

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. 在此输入图像描述

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.

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

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

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

我遇到了同样的问题,但是在我批准了将手机连接到电脑的确认框之后它就解决了。

像sudo一样运行android工作室为我做了诀窍。

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

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.

In my case SDK location was incorrect.

I disabled Instant_Run option.

please check SDK version in local.properties file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM