Instant run issue on Android Studio 2.2

2020-02-10 11:39发布

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

11条回答
等我变得足够好
2楼-- · 2020-02-10 11:58

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

查看更多
老娘就宠你
3楼-- · 2020-02-10 12:00

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.

查看更多
孤傲高冷的网名
4楼-- · 2020-02-10 12:01

In my case SDK location was incorrect.

I disabled Instant_Run option.

please check SDK version in local.properties file.

查看更多
闹够了就滚
5楼-- · 2020-02-10 12:03

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

查看更多
可以哭但决不认输i
6楼-- · 2020-02-10 12:06

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.

查看更多
登录 后发表回答