Sample code:
<permission
android:name="@string/permission_name"
android:protectionLevel="signature" >
</permission>
Error while building: missing name attribute in element .
But I don't want to duplicate permission name in my different applications. Is exist some way for fix it and contain permission in resources?
No, that's impossible. Take a look here. You can use resources to specify a label, but not the name:
The name must be unique, so it should use Java-style scoping — for example, "com.example.project.PERMITTED_ACTION".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With