Before building the project, you need to provide the Frida GumJS devkit files.
Download the latest release from:
https://github.com/frida/frida/releases/latest
Choose the package matching your target architecture, for example:
frida-gumjs-devkit-17.18.0-android-arm64.tar.xz
arm64-v8a
After extracting the archive, copy the required files into the project:
app/src/main/libs/<architecture>/libfrida-gumjs.a app/src/main/libs/include/frida-gumjs.h
Example for arm64-v8a:
app/src/main/libs/arm64-v8a/libfrida-gumjs.a app/src/main/libs/include/frida-gumjs.h
Replace <architecture> with the ABI you are building for (arm64-v8a, armeabi-v7a, x86_64, etc.).
<architecture>
armeabi-v7a
x86_64
The JavaScript scripts need to be built before building the Android project.
Follow the instructions here:
https://github.com/Xposed-Modules-Repo/com.fuck.iab/blob/main/scripts/README.md
Once the Frida files are in place and the scripts have been built, you can build the Android project using Android Studio or Gradle.