Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getting error "Cannot locate tasks that match ':app:generateBenchmarkReleaseBaselineProfile'" error when running baseline profiler

After creating a new BaselineProfile module, I tried to execute the task:

enter image description here

and I'm getting the following error:
Cannot locate tasks that match ':app:generateBenchmarkReleaseBaselineProfile' as task 'generateBenchmarkReleaseBaselineProfile' not found in project ':app'.

I'm not seeing any configuration instructions for this in the online docs for baseline profiles. Any clues?

like image 836
Oke Uwechue Avatar asked Oct 15 '25 04:10

Oke Uwechue


1 Answers

The error is because you are using benchmarkRelease build variant. Instead, just use release build variant and try again

like image 65
Calixto Avatar answered Oct 17 '25 18:10

Calixto