In order to be able to ask for permission, this must be declared in the Manifest:
uses-permission android: name = “android.permission.WRITE_EXTERNAL_STORAGE” /
If this is not the case yet, declare it in the Manifest or insert eg the File component as a dummy to add this automatically into the Manifest.