I have an APK file without its source code. I used a lot of tools to decompile it, like jadx and jd-gui, and they constantly throw decompilation errors. I know that the decompilation process is rather lossy, but I didn't know it would cause so many errors. Moreover, whenever I want to edit its decompiled Gradle project, there are lots of wrong variables, methods, and such things. I think the main reason for that is the APK size (it's more than 20 MB).
Could you suggest an approach how to decompile (or edit) such a heavy file properly?
apktool
. It has the highest success rate on decompiling and recompiling. Of course this means you have to learn Smali language which is a rather low-level language.