[关闭]
@Clay 2016-08-30T13:07:03.000000Z 字数 400 阅读 813

Android Studio 2.0 新特性 Instant Run 相关错误。

AndroidStudio Bug


今天新建了个AS Project,Run 时狂报错:

  1. Instant Run detected that the deployment target does not properly support the 'run-as' command.

每秒报一次,吓了我一跳。赶紧 用 adb kill 了这个进程:

  1. adb kill-server

看报错信息,意思是懂,但是不知道如何解决。然后google,居然没找到一条相关信息。最后在知乎上看到有知友这么说:

我建议初学Android开发的同学一定要关掉Instant Run, 否则一旦不知不觉的遇上了代码不生效的Bug那简直太打击学习自信了! 别问我为什么知道...

Setting-->Build-->Instant Run--> Enable Instant Run to..前的对勾取消掉

再次Run,没问题。

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注