Gradle build for set of Android projects (including libraries)

前端 未结 2 476
深忆病人
深忆病人 2021-01-15 00:36

I have 2 Android apps with 5 Android modules (Android library project). Total 7 Eclipse projects. I want to enable Gradle build for them. I added build.gradle i

2条回答
  •  自闭症患者
    2021-01-15 01:33

    Other option would be as Peter Niederwieser suggested

    either add some logic to the root script to apply the right plugin to each subproject (there are different ways to do this), or move the common parts into a script named android.gradle and apply that script to each subproject after applying the correct plugin for that project (all in the subproject's build script).

    Related docs is Chapter 56. Multi-project Builds

提交回复
热议问题