gpt4 book ai didi

android - 找不到属性 supportLibraryDependency

转载 作者:行者123 更新时间:2023-11-29 01:22:40 26 4
gpt4 key购买 nike

我想在我的项目中使用 ZXing barcode Scanner 库,但出现错误

Error:(12, 0) Could not find property 'supportLibraryDependency' on org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@207a9938.

这是核心 build.gradle,其中 supportLibraryDependency 是

apply plugin: 'com.android.library'

ext {
isLibrary = true
pomPackaging = "aar"
pomArtifactId = "core"
pomName = "Barcode Scanner View"
pomDescription = 'An android library project which contains the core barcode scanner view'
}

dependencies {
compile supportLibraryDependency
}

请帮忙

最佳答案

替换

compile supportLibraryDependency

implementation 'com.android.support:support-v4:28.0.0'

关于android - 找不到属性 supportLibraryDependency,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35866304/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com