各位大佬,小白第一次安装就遇见这种问题?求解/(ㄒoㄒ)/~~
> 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'
}
https://developer.huawei.com/consumer/cn/forum/topicview?tid=0202352059489660595&fid=0101303901040230869
选1.8的JDK试试。
选DevEcho Studio自带的JDK
详细的入门搭建教程可以看
https://www.bilibili.com/video/BV1VK411K7Cx/