tasks.register("printR8Version") {
try {
println("R8 version: ${com.android.tools.r8.Version.getVersionString()}")
} catch (ignored: Exception) {
println("R8 version: unknown")
}
}
All versions and the sourcecode over here: https://r8.googlesource.com/r8/+refs
Add this to your project build.gradle:
buildscript {
repositories {
google()
}
dependencies {
classpath("com.android.tools:r8:2.2.64")
}
}