Clarify error message in benchmark plugin
Bug: 287505116
Test: just string change
Change-Id: I10a0963d6b2e225362afa2c6f168939d4180586b
diff --git a/benchmark/gradle-plugin/src/main/kotlin/androidx/benchmark/gradle/BenchmarkPlugin.kt b/benchmark/gradle-plugin/src/main/kotlin/androidx/benchmark/gradle/BenchmarkPlugin.kt
index 6b33bd9..5f656dc 100644
--- a/benchmark/gradle-plugin/src/main/kotlin/androidx/benchmark/gradle/BenchmarkPlugin.kt
+++ b/benchmark/gradle-plugin/src/main/kotlin/androidx/benchmark/gradle/BenchmarkPlugin.kt
@@ -42,12 +42,12 @@
// Verify that the configuration from this plugin dependent on AGP was successfully applied.
project.afterEvaluate {
if (!foundAndroidPlugin) {
- throw StopExecutionException(
- """A required plugin, com.android.application or com.android.library was not
- found. The androidx.benchmark plugin currently only supports android
- application or library modules. Ensure that a required plugin is applied
- in the project build.gradle file."""
- .trimIndent()
+ throw StopExecutionException("""
+ The androidx.benchmark plugin currently supports only android library
+ modules. Ensure that `com.android.library` is applied in the project
+ build.gradle file. Note that to run macrobenchmarks, this plugin is not
+ required.
+ """.trimIndent()
)
}
}