permission.READ_CONTACTS does not seem to work

前端 未结 6 2072
一向
一向 2021-02-18 17:10

I\'m working on a simple app that browses through the user\'s contacts. Unfortunately I keep getting the following error:

java.lang.SecurityException: Permission         


        
6条回答
  •  广开言路
    2021-02-18 17:40

    the should be contained in the element. See Structure of the Manifest File. So trying putting it into or , won't work. Desperation move: try to move before

    
    
    

    Also if you can test without the other permissions, remove them.

    EDIT: Can you please check if this is your TOP line in your manifest file:

    
    

提交回复
热议问题