As the screenshot shows, you added the permission declaration to the wrong location so you got the error.