Problem phenomenon
SdkError: DOWNLOAD_SDK_ERROR
> Cause: Unable to find the java component with apiVersion 4.
> Solution:
1.Open SDK Manager and download java.
2.Alternatively, modify the compileSdkVersion settings in the project- and module-level build.gradle files.
Solution
Modify the build.gradle file:
ohos {
compileSdkVersion 4
defaultConfig {
compatibleSdkVersion 3
}
}
Change to:
ohos {
compileSdkVersion 5
defaultConfig {
compatibleSdkVersion 3
}
}
Read More:
- [Solved] Java XXX: unable to find topic engine in module path
- Nacos boot error, unable to find Java_HOME [How to Solve]
- Java error: unable to find or load main class (package name in source file)
- BeanDefinitionStoreException: Failed to read candidate component class probably due to a new Java
- [Solved] java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]]
- [Solved] error Unable to find the ncurses libraries
- [Solved] Maven Project Packaging Error: Unable to find main class
- Java.sql.sqlexception: unable to read more data from socket
- Elasticsearch Startup Error: unable to install syscall filter: java.lang.UnsupportedOperationException: seccomp
- Gephi cannot find Java 1.8 or higher [How to Solve]
- SpringBoot Startup Error: Failed to start component [Connector[HTTP/1.1-8080]]
- How to Fix Error Caused by: java.util.MissingResourceException: Can‘t find bundle for base name xxx, locale zh_CN
- Java: How to Find the Minimum Value from a Random Array by Bubble Sort Method
- [Solved] fragment error: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.myapplication/com.example.myapplication.MainActivity}…
- Java Running Error: Could not find or load main class
- [Solved] Tomcat7 Start Error: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardCon
- [Solved] Error setting driver on UnpooledDataSource. Cause: java.lang.ClassNotFoundException: Cannot find cla
- [Solved] IDEA Error(15, 16) java Program Pack sun.misc does not exsit or import sun.misc.BASE64Decoder Cannot find
- IntelliJ idea compilation error: Error:java : Compilation failed: internal java compiler error