Although the gradle syntax still supports this form, this function is no longer supported. However, this method has been removed in versions above gradle3.0. _androidDebugImplementation project(path: ':lib', configuration:'_androidRelease') _androidReleaseImplementation project(path: ':lib', configuration:'_androidRelease') _testDebugImplementation project(path: ':lib', configuration:'_testRelease') In particular, I need to point out that I found some domestic articles before and got a wrong result: _testReleaseImplementation project(path: ':lib', configuration:'_testRelease') It should be noted that the two must be consistent, and only the sub-modules are more than the main module's Flavors, but not less, or no Flavors at all. How to set the sub-module Flavors under multi-module? In fact, there is no need for any special settings, just need the sub-module to keep the same Flavors as the main module, and then refer to it as follows. In the following article description, _android、 _test、 _googleIt represents Flavors, debugwith releaseRepresents buildTypes, Explain in advance, it may be different according to your own project needs.
0 Comments
Leave a Reply. |