我在Gradle依赖项中添加了一个排除项,并发出了一个让我感到疑惑的复制粘贴错误...
为什么compile
采用dependencyNotation
(组,名称,版本),但exclude
采用无版本(组,模块)对?具体来说,为什么概念上相同的字段在name
compile
中module
但在exclude
中dependencies {
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);
});
}