-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
无法使用instant run #16
Comments
不是这个问题,已经设置false了。
应该是android:process="xxx"属性影响到了instant run,一直提示有多个进程在运行,需要重启app。BuildConfig.TINKER_ENABLE,我直接用false替换,还是不行。 |
Instant Run applied code changes and restarted the app.The app was restarted since it uses multiple processes.配置TinkerPatch后一直提示这个,TINKER_ENABLE = fasle,设置这个也不行,注释TinkerPatch相关的所有代码才可以使用Instant Run |
这不是看起来已经生效了么? |
这个会导致app重启,我想直接在当前界面刷新的效果。 |
multiple processes,会导致app重启,感觉instant run会检查AndroidManifest.xml里面有没有android:process这个属性,如果有会重启,如果没有就可以直接刷新当前界面,而不是重启,这是我测试后的感想。我另外开了一个项目,测试后得到的结果。 |
@jasonlee3652 确实如此,instant run对于多进程的app都会默认重启来保证所有进程都是最新的代码。 |
项目当前的热更新环境配置是正确的,已经发布上线。我设置tinkerpatchSupport{tinkerEnable = false},想禁用热更新,来使用instant run,发现不行,必须得把tinker的相关的依赖和代码全部注释才可以使用instant run,有简单点的配置来禁用tinkerpatch,而且还能够使用instant run 吗
The text was updated successfully, but these errors were encountered: