Skip to content
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

gradle build慢 #63

Open
nanguaSky opened this issue Feb 21, 2019 · 2 comments
Open

gradle build慢 #63

nanguaSky opened this issue Feb 21, 2019 · 2 comments

Comments

@nanguaSky
Copy link

原来的项目工程挺大的,植入框架后,gradle时间很慢,同步都要4 5分钟

@liyujiang-gzu
Copy link

liyujiang-gzu commented Apr 19, 2019

发现配置了下面这个进行自动组件注册就会很慢,有时候还会卡:

combuild {
    applicationName = 'runalone.MainApplication'
    isRegisterCompoAuto = true
}

所以还是配置 isRegisterCompoAuto = false,手动Router.registerComponent("XXXApplicationLikeImpl");去注册组件吧!

@YummyLau
Copy link

实际上build花费的时间不可避免,因为插件内部也是通过引用project,构建的时候必定会编译项目。
可以考虑通过独立组件编译,不过目前插件不支持。
更倾向依赖的sdk打包成jar,成熟的组件直接打包成 aar就可以了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants