flavorDimensions gradle error - Android Studio 3.0 Canary 1

后端 未结 4 490
有刺的猬
有刺的猬 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条回答
  •  萌比男神i
    2020-12-31 05:34

    I got around this by using gradle 4.3 (with Android Studio 3.0)

    To use it with Android Studio 3.0:

    1. Download the binary here: https://gradle.org/releases/
    2. Configure local gradle binary in Android Studio, under preferences...

    1. Then in your gradle file replace compile with either implementation or api depending on your requirements.

    references: https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html

    ALSO: make sure that your external modules (i.e util) have the same flavors as your App or you will get the error outlined in here: Gradle 4.0 Unable to find a matching configuration

提交回复
热议问题