I want to embed a metasploit payload in an original .apk, but I almost always get an error from apktool. There are just a very few apps that it worked with. I tried msfvenom, fatrat, and decompiling and doing it manually.
I think there is a problem with apktool, because it decompiles just fine, but even if I don't change anything, and try to rebuild the apk it gives an error.
(It's an app that I made using Android Studio, but it gives this error with most of the apks I tried)