Permission denied (missing INTERNET permission?): But permission is given

后端 未结 7 2257
谎友^
谎友^ 2020-11-28 13:47

I\'m trying to call a httpClient and the response is \"Permission denied (missing INTERNET permission?)\". In the normal browser of Android I can open the URL without proble

7条回答
  •  一向
    一向 (楼主)
    2020-11-28 14:18

    Did you try giving permission above the application tag?

    You should take care of order in which tags are defined in Manifest.xml.

    See structure of Manifest.

    Edited:

    
    
    
    
    
    
    
    
    
    

    Details:

    Order of defining tabs in Manifest:

    1. Permissions
    2. Applications
    3. Receiver, Service, Metadata

提交回复
热议问题