I use CLI to build my Cordova app, and I have added the Media plugin.
\'cordova build\' automatically adds the android.permission.RECORD_AUDIO to my AndroidManifest.
after unsuccessfully trying several suggestions ;
went to platforms\android\cordova and ran
>clean
went back to project directory and (on windows) ran
>findstr /s /M RECORD_AUDIO *.* > results.txt
opened results.txt to see files with the permission in them
removed mention of permission from all files listed except the AudioHandler.java files.
Did a build and it worked. Finally.