Closed Yanqilong closed 6 years ago
gradle.properties配置有误,配置发一下吧
不好意思,忘记提问了这个问题
首先是子模块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
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'.
找到了问题,依赖引用的属性加了单引号,掌脸~~,问题关闭了
组件启动的时候报错,是什么原因? Error:(1, 1) A problem occurred evaluating project ':welcome'.