Failed to initialize runtime solution appears when using ECJ or DX command in termux
The error report said that I had to check the log. Because I didn’t know much about Android system, I chose to check what ECJ did
Enter the path as shown in the figure
cd ~/../usr/bin
Cat ECJ later found that he was actually executing the command dalvikvm
So cat dalvikvm finds the following in this command
The two lines I marked had no comments
Open dalvikvm through VI or vim and comment out the above two lines. You can use it normally
Note out the following two lines
export ANDROID_ DATA=/data/data/com.termux/files/usr/var/android/
mkdir -p $ANDROID_ DATA/dalvik-cache
)You can use ECJ
Cause analysis:
Because the directory will exist after being used, the execution fails
Here is the original: https://github.com/termux/termux-packages/issues/1107
Read More:
- Solutions to the failure of installing jupyters in termux
- Playing audio in termux
- Mobile phone code termux
- The docker runtime container reported an error: error response from daemon: OCI runtime create failed
- Termux installing redis
- Doris query task failed to initialize storage reader
- FileZilla server failed to initialize SSL Library
- Failed to load the native TensorFlow runtime.
- The app failed to start because there is no Qt platform to initialize
- [Handling Notes] Alternative reasons for Configuration system failed to initialize exception
- Linux boot prompt “failed to initialize Hal!” solution
- unity 3D:Virtual Reality SDK Oculus failed to initialize.
- Solution: Failed to load the native TensorFlow runtime.
- Failed to initialize nvml driver / library version mismatch due to automatic update of NVIDIA driver
- MySQL — initialize failed to generate temporary password in error log after initialization
- Unity3d open prompt failed to initialize unity graphic
- org.apache.flink.runtime.client.JobSubmissionException: Failed to submit JobGraph
- libdc1394 error: Failed to initialize libdc1394
- To solve the problem of importerror when installing tensorflow: libcublas.so . 10.0, failed to load the native tensorflow runtime error
- failed to lazily initialize a collection of role: ……, no session or session was closed