Reputation: 1881
I am using retrace.bat -verbose mapping.txt obfuscated_trace.txt
at the command prompt.
But it's showing the error message: retrace.bat is not recognized as an internal command
.
How do I fix that error?
Upvotes: 3
Views: 3101
Reputation: 992
Please follow the below points.
open the terminal/cmd
cd **/sdk/tools/proguard/bin/proguardgui.jar
refer the attached image, retrace GUI pop's up
select your mapping file and copy-paste your obfuscated stacktrace
That's it. Simple and easy
Upvotes: 4
Reputation: 25137
If your current path at the command prompt is not the same as the bat file, and if the bat file path is not in your environment PATH, then you will get this error.
Either add the Android SDK Proguard bin path to your environment PATH, point to it directly during the call, or go to that path first:
SET PATH=%PATH%;[path to Android SDK]\tools\proguard\bin
(for example: SET PATH=%PATH%;C:\android-sdk-windows\tools\proguard\bin
)
Or to specify the path at the call:
C:\android-sdk-windows\tools\proguard\bin\retrace.bat -verbose mapping.txt obfuscated_trace.txt
Or go to the path first:
cd C:\android-sdk-windows\tools\proguard\bin\
retrace.bat -verbose "path\to\mapping.txt" "\path\to\obfuscated_trace.txt"
Upvotes: 2
Reputation: 652
you don't need to write the .bat when you call retrace.bat, so write
retrace -verbose mapping.txt obfuscated_trace.txt
and maybe you are not in the current path, you should be at
...\android-sdk-windows\tools\proguard\bin
Upvotes: 2