Build error when permission added to config

when we add a permission to the xml file we get build error, the permission we add is the fallowing

    <config-file parent="/manifest" target="AndroidManifest.xml" xmlns:android="">
        <uses-permission android:name="android.permission.READ_PHONE_STATE" />

the error we get is :

Failed UserError: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ‘:app:generateDebugBuildConfig’. > Failed to calculate the value of task ‘:app:generateDebugBuildConfig’ property ‘buildConfigPackageName’. See log for full details.

how to solve this?

This looks like a problem with the plugin. Do you know which one it is?

Check the GitHub repo issues for it and see if there are any similar reports - otherwise, you’ll need to ask the maintainer for help.

Hello Sir

This isn’t a plugin, this is a line to request permission from user. isn’t related to any plugin.

Yes, I understand.

What plug-in uses this permission?

as i know is cordova-plugin-device

I did find a related issue. You might want to contact the maintainers of the plugin to see if they have suggestions. It doesn’t look like it’s something that is caused by VoltBuilder.