各位大佬,小白第一次安装就遇见这种问题?求解/(ㄒoㄒ)/~~

wx5f5b793f17bdc
发布于 2020-9-11 21:22
浏览
0收藏

> Configure project :
Info: Parsing C:\Users\zhouge\AppData\Local\Huawei\Sdk\java\3.0.0.80\uni-package.json
Info: Parsing C:\Users\zhouge\AppData\Local\Huawei\Sdk\toolchains\uni-package.json

FAILURE: Build failed with an exception.

* Where:
Build file 'F:\Users\zhouge\DevEcoStudioProjects\MyApplication\entry\build.gradle' line: 1

* What went wrong:
A problem occurred evaluating project ':entry'.
> javax/xml/bind/ValidationException

* 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

CONFIGURE FAILED in 0s

 

 

是第一次开发TV应用,选择的是Java空应用,点开下载gradle后就这样了。

 

其中,提示的问题文件为:

apply plugin: 'com.huawei.ohos.hap'
ohos {
    compileSdkVersion 3
    defaultConfig {
        compatibleSdkVersion 3
    }
    
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    testCompile'junit:junit:4.12'
}

 

 

收藏
回复
举报
3条回复
按时间正序
/
按时间倒序
金色流年
金色流年

https://developer.huawei.com/consumer/cn/forum/topicview?tid=0202352059489660595&fid=0101303901040230869

回复
2020-9-12 00:20:33
鸿蒙开发者社区官方账号
鸿蒙开发者社区官方账号

选1.8的JDK试试。

1
回复
2020-9-12 08:05:21
ckelsel
ckelsel

选DevEcho Studio自带的JDK

 

详细的入门搭建教程可以看

https://www.bilibili.com/video/BV1VK411K7Cx/

回复
2020-9-14 09:23:55
回复
    相关推荐