Gradle依赖项模块与名称

时间:2018-06-07 23:27:46

标签: gradle dependency-management

我在Gradle依赖项中添加了一个排除项,并发出了一个让我感到疑惑的复制粘贴错误...

为什么compile采用dependencyNotation(组,名称,版本),但exclude采用无版本(组,模块)对?具体来说,为什么概念上相同的字段在name compilemodule但在excludedependencies { compile(group: 'com.example', name: 'example-library', version: '1.2.3') { exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind' } }

    componentWillMount() {
   this.initializeSDK();
  }

  initializeSDK() {
    let options = {
      licenseKey: '',
      loggingEnabled: true
    };
    console.log("check object type and value");
    console.log(typeof options);
    console.log(options);
    ScanbotSDK.initializeSDK(options, (result) => {
      // Scanbot SDK successfully initialized
      console.log("Result  HELP");
      console.log(result);
    }, (error) => {
      // Scanbot SDK initialization failed
      console.log("Error of scanbot");
      console.log(error);
    });
  }

0 个答案:

没有答案