ERROR: Gradle DSL method not found: 'mavenCentra()'
Possible causes:
The project 'BenchmarkDemo' may be using a version of Gradle that does not contain the method.
Open Gradle wrapper file
The build file may be missing a Gradle plugin.
Apply Gradle plugin
other details
compileSdkVersion 28
buildToolsVersion "28.0.3"
minSdkVersion 18
targetSdkVersion 28