Add it in your root build.gradle at the end of repositories:

    allprojects {
        repositories {
            //...
            maven { url 'https://jitpack.io' }
        }
    }

Add the dependency

    dependencies {
        implementation 'com.github.TimScriptov:resguard:Tag'
    }

Obfuscate resources

    ResGuard(File("path/inFile.apk"), File("path/outFile.apk"), false, null)
    ResGuard(new File("path/inFile.apk"), new File("path/outFile.apk"), false, null);