gradle 在Android中添加基于味道的依赖项

bogh5gae  于 2023-01-05  发布在  Android
关注(0)|答案(1)|浏览(155)

你好,我正在尝试添加一些基于风格的依赖项在我的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.
hrysbysz

hrysbysz1#

如下

android {
    
    productFlavors {
        customextended {}
        customini {}
    }
}

dependencies {
    customextendedImplementation 'dependency_name'
}

你的拼写错误

相关问题