Conditional dependencies with Gradle, is it possible?

前端 未结 3 1296
醉话见心
醉话见心 2021-01-12 21:41

I have an Android project (already ported to Android Studio and using Gradle) that is made up of different modules.

The project is actually used to create two differ

3条回答
  •  忘掉有多难
    2021-01-12 22:13

    Yes, it is. New Android build system based on Gradle supports your use case with its concept of product flavors. http://tools.android.com/tech-docs/new-build-system/user-guide

    Note that you will likely want to switch from Eclipse to Android Studio when you do migration to Gradle build.

提交回复
热议问题