RocketX icon indicating copy to clipboard operation
RocketX copied to clipboard

Cannot change dependencies of dependency configuration ':xxx:api' after it has been included in dependency resolution.

Open Wensibob opened this issue 2 years ago • 1 comments

步骤: 1、开启插件,第一次跑没问题 2、再跑一次报错,报错如下图所示,项目没有设置org.gradle.configureondemand = true image

Wensibob avatar Sep 09 '22 08:09 Wensibob

@Wensibob // app module 的 build.gradle 加入 apply plugin: 'com.rocketx'

// 在根目录的 build.gradle 加入 buildscript { dependencies { classpath 'io.github.trycatchx:rocketx:1.1.1' } }

以上保证写入依赖关系在最后一行

trycatchx avatar Sep 14 '22 11:09 trycatchx