Since I have had several asks about that. I just place my answer here.
I suppose that you already prepared Android SDK, JDK, PhoneGap/Cordova/Ionic etc. All this stuff has good manuals about download and setup.
But when you add or edit Run/Debug configuration for the PhoneGap/Cordova plugin you can see the warning – “Cannot detect android SDK in path”
The most answers, I saw recommends adding changes to the .bashrc file
But you forgot that you already have .profile file
Since most applications read .profile just duplicate
in the .profile
Then run in console
And restart IDEA (perhaps this step is superfluous)