Cordova adds unwanted permission to AndroidManifest.xml when building from CLI

前端 未结 6 943
Happy的楠姐
Happy的楠姐 2021-01-18 07:13

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.

6条回答
  •  难免孤独
    2021-01-18 08:12

    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.

提交回复
热议问题