[英]Adding flavour based dependencies in Android
您好,我正在嘗試在我的 Android 項目中添加一些基於風格的依賴項。 我的代碼如下所示
android {
productFlavors {
customextended {}
customini {}
}
}
dependencies {
customextendedImplimentation 'dependency_name'
}
上面的代碼拋出以下錯誤
A problem occurred evaluating project ':app'.
> Could not find method customextendedImplimentation() for arguments [dependency_name] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
如下:
android {
productFlavors {
customextended {}
customini {}
}
}
dependencies {
customextendedImplementation 'dependency_name'
}
你的一個拼寫錯誤
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.