Changing Dependencies in the Build.gradle

Hi @jjustinic thanks for your reply, but it work fine when i comment out this line

compileClasspath.resolutionStrategy {
        eachDependency{ DependencyResolveDetails details ->
            if (details.requested.group == 'com.lowagie' && details.requested.name == 'itext' ) {
                details.useTarget group: 'com.github.librepdf', name: 'openpdf', version: '1.3.24'
            }
        }
    }

but i need those few lines for changing the dependencies.