Follow below steps to do this or simply use apkToJava gem for this process, it even takes care of installing the required tools for it to work.
- convert apk file to zip
- unzip the file
- extract classes.dex from it
- use dex to jar to convert classes.dex into jar file
- use jadx gui to open the jar file as java source code