I have lost my android studio project completely and there is no way to get it back. Now, I'm trying to decompile my apk file to access my java classes and xml files.
using dex2jar
and jd-gui
, I get my java classes BUT non of programs that I tested.So far, I can't decompile my xml files!
apktool show me this error:
Exception in thread "main" brut.androlib.err.UndefinedResObject: could not decode arsc file
do i have to create all of my xml again? or there any way to decompile apks that generated by android studio?
Edit: "Apk Studio" Give me same error with apktool for decompiling apk file.
To decompile the XML files you can use the following tools:
JadX
- https://github.com/skylot/jadxApktool
- https://github.com/iBotPeaches/ApktoolRemember the apktool
which you are using is probably a very old version. Download the latest version of apktool.jar
from https://github.com/iBotPeaches/Apktool/releases/download/2.1.1/apktool_2.1.1.jar
Below are the two process through which you can get the xml files.
Apktool
Method:java -jar apktool.jar d <apkfile.apk>
without the angular brackets and substituting apkfile.apk
with the actual path to the apk fileJadx
method:bin/
folderjadx-gui.bat
file./jadx-gui
Reference: Jadx
open dialogue