找不到属性supportLibraryDependency

时间:2016-03-08 11:36:37

标签: android zxing

我想在我的项目中使用ZXing条码扫描器库,但是我收到了错误

<%@ Page Language="C#" CodeFile="test.aspx.cs" inherits="Test" %>
<body>
  <script>
    var xhr = new XMLHttpRequest();
    xhr.onload = function(e) {
      console.log(e);
    }
    xhr.open('put', '/moja/test.aspx', true);
    xhr.send();
    </script>
</body>
</html>

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

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

请帮助

1 个答案:

答案 0 :(得分:1)

替换

compile supportLibraryDependency

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