flavorDimensions gradle error - Android Studio 3.0 Canary 1

后端 未结 4 489
有刺的猬
有刺的猬 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:43

    Seems like a bug in the Gradle build process, I'm not quite sure why exactly it's not working. I was stuck on this for a while but I was able to fix it by changing

    compile project(':util')
    

    to

    compile project(path: ':util', configuration: 'default')
    

    Let me know if this works for you!

提交回复
热议问题