Follow these steps:
Download Frida library. (.so file)
Decompile the apk with apktool
Put frida library on /lib/. If your are in emulator just put library on /lib/x86 .
Add Internet permission to the apk manifest.
Put this code on MainActivity of application.
const-string v0, "frida-gadget"
invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V