diff --git a/MacrobenchmarkSample/macrobenchmark/src/main/kotlin/com/example/macrobenchmark/baselineprofile/Common.kt b/MacrobenchmarkSample/macrobenchmark/src/main/kotlin/com/example/macrobenchmark/baselineprofile/Common.kt index 0eb564b..9738eaf 100644 --- a/MacrobenchmarkSample/macrobenchmark/src/main/kotlin/com/example/macrobenchmark/baselineprofile/Common.kt +++ b/MacrobenchmarkSample/macrobenchmark/src/main/kotlin/com/example/macrobenchmark/baselineprofile/Common.kt @@ -27,7 +27,7 @@ const val TARGET_PACKAGE = "com.example.macrobenchmark.target" * including the package name of the app under test. */ fun UiDevice.clearData(scope: MacrobenchmarkScope) { - val command = "pm clear $scope.packageName" + val command = "pm clear ${scope.packageName}" val output = executeShellCommand(command) // Assert.assertEquals("Success", output) } \ No newline at end of file