luojilab / DDComponentForAndroid

一套完整有效的android组件化方案,支持组件的组件完全隔离、单独调试、集成调试、组件交互、UI跳转、动态加载卸载等功能
MIT License
3.34k stars 570 forks source link

could not be found in project #66

Closed Yanqilong closed 6 years ago

Yanqilong commented 6 years ago

组件启动的时候报错,是什么原因? Error:(1, 1) A problem occurred evaluating project ':welcome'.

Failed to apply plugin [id 'com.dd.comgradle'] Project with path ':''' could not be found in project ':welcome'.

mqzhangw commented 6 years ago

gradle.properties配置有误,配置发一下吧

Yanqilong commented 6 years ago

不好意思,忘记提问了这个问题

首先是子模块welcome的build.gradle dependencies { implementation project(':componentservice') } combuild { applicationName = 'com.newseax.welcome.application.WelcomeApplication' isRegisterCompoAuto = true }

gradle.properties isRunAlone=true

然后是主模块的build.gradle combuild { applicationName = 'com.newseax.application.NewSeaXApplication' isRegisterCompoAuto = true }

gradle.properties isRunAlone=true debugComponent='com.newseax.welcome:welcome' compileComponent='welcome'

顶级gradle.properties mainmodulename=app

Yanqilong commented 6 years ago

gradle.properties isRunAlone=false

现在打arr的时候会报这错,很奇怪的问题是welcome是子项目,而且没有去依赖 app主项目,为什么会报could not be found in project ':app'.

Error:(1, 1) A problem occurred evaluating project ':app'.

Failed to apply plugin [id 'com.dd.comgradle'] Project with path ':'welcome'' could not be found in project ':app'.

Yanqilong commented 6 years ago

找到了问题,依赖引用的属性加了单引号,掌脸~~,问题关闭了