鸿蒙编译报错:Unable to find the java component with apiVers
问题现象SdkError:DOWNLOADSDKERRORCause:UnabletofindthejavacomponentwithapiVersion4.Solution:1.OpenSDKManageranddownloadjava.2.Alternatively,modifythecompileSdkVersionsettingsintheprojectandmodulelevelbuild.gradlefiles.解决方案修改build.gradle文件:ohos{compileSdkVersion4defaultConfig{compatibleSdkVersion3}}改成:ohos{compileSdkVersion5defaultConfig{compatibleSdkVersion3}}