Android Question Permission denied

Discussion in 'Android Questions' started by CVR, May 9, 2019.

  1. CVR

    CVR Member Licensed User

    Hi, I'm trying to create a simple tcp server with the network library but I have the following error Permission denied.
    this is my manifest editor
    I'm using API 24

    <uses-sdk android:minSdkVersion="5" android:targetSdkVersion="26"/>
    <supports-screens android:largeScreens="true"

    SetApplicationAttribute(android:icon, "@drawable/icon")
    SetApplicationAttribute(android:label, "$LABEL$")
    CreateResourceFromFile(Macro, Themes.DarkTheme)


  2. Computersmith64

    Computersmith64 Well-Known Member Licensed User

    According to your manifest you're targeting SDK 26. I'm not sure if there are implications with that if you are building with 24, but you might want to use SDKManager to update to the latest.

    I thought maybe it was a runtime permissions issue, but I don't think the network library contains any dangerous permissions - so maybe it's something to do with having the target SDK set higher than the one you're compiling with?

    Runtime Permissions (Android 6.0+ Permissions)

    - Colin.
    Last edited: May 9, 2019
  3. CVR

    CVR Member Licensed User

    Hi, thanks for answering, the problem was that I was trying to listen on port 80 and I can only listen in ports from 1024
    Computersmith64 likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice