:app:transform Classes With Profilers-transform For Debug FAILED

enter image description here

Disable this switch will fix your problem.

  1. Select Run > Edit Configurations.
  2. Select your app module in the left pane.
  3. Click the Profiling tab, and then check to disable advanced profiling.

For me, cleaning the project and building again fixed it.