Use different build types of Library Module in Android App Module in Android Studio and Gradle

后端 未结 4 1190
名媛妹妹
名媛妹妹 2020-12-13 19:53

I have a workspace containing several different apps and a common library project that I am looking to convert from Eclipse to Android Studio and from Ant to Gradle. Curren

4条回答
  •  爱一瞬间的悲伤
    2020-12-13 20:32

    As of Android Gradle Plugin v3.0.0, the plugin could choose the build type to compile for the sub-module library based on the build type being compiled for the app. Hence debug would compile debug type of library, and release would compile release type of the library. Furthermore there are even added extensions for resolving non-standard build types or flavors using matchingFallback or missingDimensionStrategy.

    More info can be found here: Use variant-aware dependency management

提交回复
热议问题