简体   繁体   English

即时运行AndroidStudio 2.0 Beta 6无法正常工作

[英]Instant Run AndroidStudio 2.0 Beta 6 doesn't work

I've been trying to enable 'Instant Run' feature for my project but it's no too easy as it seemed initially. 我一直在尝试为我的项目启用“即时运行”功能,但这并不像最初看起来那样容易。 I've ended up with constant 我结束了不断

java.lang.RuntimeException: 
Unable to instantiate application com.android.tools.fd.runtime.BootstrapApplication: 
java.lang.IllegalStateException: 
java.lang.ClassNotFoundException: com.my.package.MyApplication

I've tried switching to legacy multidexing, tried switching instant run off and then switching it back on, tried to switch off multidexing at all on brand new project with just one activity. 我尝试过切换到旧式多义处理,尝试立即关闭即时流然后再重新打开,并尝试仅使用一项活动就完全关闭了全新项目上的多义处理。 All attempts were headed by project cleaning. 所有尝试都由项目清理负责。

Over and over again it fails with java.lang.ClassNotFoundException . 一遍又一遍,它失败,并显示java.lang.ClassNotFoundException

Don't understand how it works for others. 不了解它如何为他人服务。

PS PS

Already looked into 已经调查

I installed the beta and just enabled Instant Run in Android Studio > Settings > search for Instant Run if you haven't. 我安装了测试版,并在Android Studio>设置中启用了即时运行>如果没有,请搜索即时运行。

Class not found exception is another problem. 未找到类异常是另一个问题。

com.my.package.MyApplication is this the real package you are using? com.my.package.MyApplication这是您使用的真正软件包吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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