Adding permissions using build.settings file?

My app is required to write json files to the device and I’m trying to use a build.settings file to add permissions to allow it to write that data. when I try to create the APK its throwing back errors.

here is my build.settings file:

settings { android = { versionCode = "1", usesPermissions = { "android.permission.WRITE\_EXTERNAL\_STORAGE", "android.permission.ACCESS\_FINE\_LOCATION", }, }, }

here is the error it shows me:

Runtime error \build.settings:2: attempt to call global 'settings' (a nil value) stack traceback: [C]: in function 'settings' \build.settings:2: in main chunk Runtime error: \build.settings:2: attempt to call global 'settings' (a nil value) stack traceback: [C]: in function 'settings' \build.settings:2: in main chunk

Can anyone please help?

line 1 should be:

settings =

note the equal sign at the end.

Rob

Thank you!

David

line 1 should be:

settings =

note the equal sign at the end.

Rob

Thank you!

David