q***@163.com
q***@163.com
  • 发布:2023-02-16 17:21
  • 更新:2023-03-14 16:44
  • 阅读:1228

在config.json中 使用Gradle 方式引入 就会报错,不知是我配置问题还是什么原因

分类:uts
uts

Hbuilder X 版本 3.6.18.20230117

config.json

{  
    "dependencies": ["com.aliyun.dpa:oss-android-sdk:2.9.11"]  
}
17:18:58.615 FAILURE: Build failed with an exception.  
17:18:58.617 * What went wrong:  
17:18:58.617 Execution failed for task ':androidDependencies'.  
17:18:58.619 > Failed to notify dependency resolution listener.  
17:18:58.619    > Failed to notify dependency resolution listener.  
17:18:58.621       > 'void org.gradle.api.artifacts.DependencySubstitutions$Substitution.with(org.gradle.api.artifacts.component.ComponentSelector)'  
17:18:58.621    > 'void org.gradle.api.artifacts.DependencySubstitutions$Substitution.with(org.gradle.api.artifacts.component.ComponentSelector)'  
17:18:58.623 * Try:  
17:18:58.623 > Run with --stacktrace option to get the stack trace.  
17:18:58.625 > Run with --info or --debug option to get more log output.  
17:18:58.626 > Run with --scan to get full insights.  
17:18:58.629 * Get more help at https://help.gradle.org  
17:18:58.629 BUILD FAILED in 9s  
17:18:58.631 Error:   
17:18:58.631 FAILURE: Build failed with an exception.  
17:18:58.634 * What went wrong:  
17:18:58.634 Execution failed for task ':androidDependencies'.  
17:18:58.638 > Failed to notify dependency resolution listener.  
17:18:58.638    > Failed to notify dependency resolution listener.  
17:18:58.641       > 'void org.gradle.api.artifacts.DependencySubstitutions$Substitution.with(org.gradle.api.artifacts.component.ComponentSelector)'  
17:18:58.641    > 'void org.gradle.api.artifacts.DependencySubstitutions$Substitution.with(org.gradle.api.artifacts.component.ComponentSelector)'  
17:18:58.643 * Try:  
17:18:58.647 > Run with --stacktrace option to get the stack trace.  
17:18:58.647 > Run with --info or --debug option to get more log output.  
17:18:58.650 > Run with --scan to get full insights.  
17:18:58.650 * Get more help at https://help.gradle.org  
17:18:58.654 BUILD FAILED in 9s  
17:18:58.654     at C:\HBuilderX\plugins\uts-development-android\out\external.js:20:22887  
17:18:58.657     at Generator.next (<anonymous>)  
17:18:58.657     at C:\HBuilderX\plugins\uts-development-android\out\external.js:20:19510  
17:18:58.659     at new Promise (<anonymous>)  
17:18:58.660     at C:\HBuilderX\plugins\uts-development-android\out\external.js:20:19255  
17:18:58.662     at ChildProcess.<anonymous> (C:\HBuilderX\plugins\uts-development-android\out\external.js:20:22708)  
17:18:58.663     at ChildProcess.emit (node:events:513:28)  
17:18:58.665     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
2023-02-16 17:21 负责人:无 分享
已邀请:
m***@163.com

m***@163.com

gradle版本使用6.9.4就行了,最新的8.x版本会报错

要回复问题请先登录注册