Today I'm going to focus on an error I encountered when I used the mat tool to parse a file
Error opening heap dump ' a.hprof '. Check the error log for further details.
Error opening heap dump ' a.hprof '. Check the error log for further details.
Unknown HPROF Version (JAVA profile 1.0.3) (java.io.IOException)
Unknown HPROF Version (JAVA profile 1.0.3)
The reason: The Android virtual machine exported the memory file Hprof file format is not the same as the standard Java hprof file format standard, the root cause of the virtual machine inconsistency between the two.
Just use the conversion tool that comes with the SDK to convert it.
Open Mat
Import file
I import the error above, how to solve it?
Just use the conversion tool that comes with the SDK to convert it.
Next we CD to this path to execute this command to convert our Hprof file, as
Where the Hprof-conv command uses this
Hprof-conv source File New file path
Import the B.hprof file and you're done.
Click Finish to generate the report
That's a success.
Android-------Android Studio error encountered using the MAT analysis tool