How to run Ionic with capacitor?

I run my project with Cordova a lot, but when I want to try to run my project with the capacitor android studio get this error, here is in this link. please help me.

The documentation states how to do that.
https://capacitor.ionicframework.com/docs/basics/building-your-app