Gradle multiproject define dependency on root project

前端 未结 2 1218
一向
一向 2021-02-07 21:30

I have a multi project gradle build, configured in this way:

root
  |
  |---- projectA
  |
  |---- projectB

I want to declare in the ro

2条回答
  •  渐次进展
    2021-02-07 22:07

    If you got the 'java' plugin has been applied, but it is not compatible with the Android plugins error, try this

    subprojects {
        afterEvaluate {
            dependencies {
                implementation "YOUR DEPENDENCIES"
            }
        }
    }
    

提交回复
热议问题