flavorDimensions gradle error - Android Studio 3.0 Canary 1

后端 未结 4 498
有刺的猬
有刺的猬 2020-12-31 04:42

I would like to upgrade my project to Android Studio 3.0 Canary 1 and the gradle:3.0.0-alpha1 plugin, however I have a problem with the correct definition of flavors for inc

4条回答
  •  星月不相逢
    2020-12-31 05:28

    I had a similar issue using Canary 2, but the proposed solution didn't work. Apparently there is a way to use the implementation from a Local library or project:

    // This is the old method and no longer works for local
    // library modules:
    // debugCompile project(path: ':foo', configuration: 'debug')
    // releaseCompile project(path: ':foo', configuration: 'release')
    
    // Instead, simply use the following to take advantage of
    // variant-aware dependency resolution. You can learn more about
    // the 'implementation' configuration in the section about
    // new dependency configurations.
    implementation project(':foo')
    

    Reference from Studio Documentation.

提交回复
热议问题