Problem Editing APK file, NEED HELP

I’m trying to edit an APK file but running into issues. I’ve extracted and modified the APK, but after rebuilding and installing, it either won’t install or crashes when I open it. I want to know the correct process or tools I should be using to safely decompile, edit, and recompile an APK.
Edited I found this website mt-manager.net which is super amazing and worked for me

Hi @jobyzoj8moguh, we’ve moved this post to off-topic. Once you modify an APK file, it goes against our Terms of Use and so we won’t be able to provide any support for you if it breaks.

thanks matt