如何使用gradle自动打包?

PS D:\AndroidProject\HM\clientwatch> ./gradlew.bat clean 

 
FAILURE: Build failed with an exception. 

 
* What went wrong: 

A problem occurred configuring root project 'clientwatch'. 

> Could not resolve all files for configuration ':classpath'. 

   > Could not find hap-3.0.5.2-shaded.jar (com.huawei.ohos:hap:3.0.5.2). 

     Searched in the following locations: 

         https://developer.huawei.com/repo/com/huawei/ohos/hap/3.0.5.2/hap-3.0.5.2-shaded.jar 

 
* Try: 

> Run with --stacktrace option to get the stack trace. 

> Run with --info or --debug option to get more log output. 

> Run with --scan to get full insights. 

 
* Get more help at https://help.gradle.org 

 
BUILD FAILED in 949ms 

我使用了最简单的命令,发现也无法运行gradle,应该是需要其他参数,请问这个参数怎么获取呢?
 
 

鸿蒙
gradle
参数
2022-05-07 15:04:49
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
似鸿风
2

可以参考这个:https://developer.harmonyos.com/cn/docs/documentation/doc-guides/command-line-building-app-hap-0000001193655754

分享
微博
QQ
微信
回复
2022-05-07 16:17:35
相关问题
DevEco Studio 无法自动配置gradle
8077浏览 • 2回复 已解决
docker 如何打包镜像呢?
880浏览 • 1回复 待解决
鸿蒙打包app报错,想打包app文件发布
6907浏览 • 4回复 已解决
Gradle怎么实现多productFlavors
4859浏览 • 1回复 待解决
鸿蒙demo gradle报错怎么解决
8340浏览 • 4回复 待解决
关于混合打包 HarmonyApplication?
4700浏览 • 1回复 待解决
如何实现应用的屏幕自动旋转
195浏览 • 1回复 待解决
build.gradle中的签名问题
5987浏览 • 2回复 待解决
编译打包的签名怎么管理
366浏览 • 1回复 待解决
关于DevEco Studio的gradle错误的处理?
15509浏览 • 4回复 已解决
打包怎么对代码进行混淆?
4619浏览 • 1回复 待解决