Android Studio 3.0 Compile Issue (Cannot choose between Configurations)

后端 未结 10 829
再見小時候
再見小時候 2020-11-30 04:34

Issue with latest 3.0 build (Beta 2) My project has 1 sub module by a 3rd party so I only have access to their build.gradle.

My project has 3 flavours, snap, uat, pr

10条回答
  •  爱一瞬间的悲伤
    2020-11-30 04:55

    If you are using the complex setup where there is a module and than there are some submodules etc. Than you need to add the build variants to the module(say top module) and than to submodule and other modules that might be using your module. You can not directly add to submodule or else android studio will get confused as to which one to pick.

    Just to give an Example, let us say there is snapDebug for submodule as build variant, now it should be clubbed with a snapDebug for Top Module or snapDebug of a module using it. If snapDebug is not there in either of them, android studio will get confused which one to pick with the one of other one. Hence the error in latest builds of android studio.

    Hope it helps to understand the problem and solution.

提交回复
热议问题