Ошибка синхронизации при добавлении нового модуля бенчмарка - PullRequest
0 голосов
/ 25 сентября 2019

Я пытался создать новый модуль тестирования, как описано здесь , но синхронизация моего проекта завершилась ошибкой

Detected usage of the testInstrumentationRunner,
                            androidx.benchmark.AndroidBenchmarkRunner, in project benchmark,
                            which is no longer valid as it has been moved to
                            androidx.benchmark.junit4.AndroidBenchmarkRunner.

1 Ответ

0 голосов
/ 25 сентября 2019

Изменение

testInstrumentationRunner 'androidx.benchmark.AndroidBenchmarkRunner'

на

testInstrumentationRunner 'androidx.benchmark.junit4.AndroidBenchmarkRunner'

в файле Gradle модуля тестирования позволило устранить проблему.

...