Question: how to obfuscate android apk?
Answer: Configure your gradlefile. In your app/build.gradle file, set minifyEnabled to true, see snippet below: android { ... 
Use Android default Proguard rules or create your own. ... 
Edit your proguard-rules.pro. ... 
Release your app and test. ... 
Check if your code is obfuscated.