Gradle DSL method not found : 'multiDexEnabled()'

后端 未结 6 1785
无人及你
无人及你 2021-01-17 23:55

I followed the multidex guide at https://developer.android.com/tools/building/multidex.html

But I get this error Gradle DSL method not found : \'multiDexEnab

6条回答
  •  离开以前
    2021-01-18 00:41

    I also received this error when I placed the multiDexEnabled true command in the wrong location. Make sure it's in the defaultConfig code block:

    android {
        ...
    
        defaultConfig {
            ...
    
            // Enabling multidex support.
            multiDexEnabled true
        }
    }
    

提交回复
热议问题