Symptom
When DevEco Studio and Command Line Tools of 6.0.2.640 are used, if JDK25 is configured in the system environment, running the packaging command in the command line will result in a packaging failure, with the following error message reported:
ERROR: 00303153 Configuration Error
Possible Causes
The API behavior of JDK-8370216 in JDK25 has changed, resulting in the packaging failure.
Solution
Run the java --version command in the system command line terminal to check whether JDK25 is used by default. If JDK25 is used, use either of the following solutions:
Solution 1: Set the system environment variable to a version earlier than JDK25.
Solution 2 (recommended): Upgrade DevEco Studio and Command Line Tools to 6.0.2.642 or later.