Android Question AndroidManifest.xml:19: error: No resource identifier found for attribute 'networkSecurityConfig' in

Discussion in 'Android Questions' started by Ariston, Jul 15, 2019.

  1. Ariston

    Ariston Member Licensed User

    I AM trying to add this line to the manifest editor:

    AndroidManifest.xml:19: error: No resource identifier found for attribute 'networkSecurityConfig' in package 'android'
    But when I compile the project, I get this erro:

    Packaging files.    Error
    19: error: No resource identifier found for attribute 'networkSecurityConfig' in package 'android'
    AAPT path: C:\Android\android-sdk\tools\..\build-tools\27.0.2\aapt.exe
    Exit code:1
    This is the content of my Manifest:

    'This code will be applied to the manifest file during compilation.
    'You do not need to modify it in most cases.
    'See this link for for more information:
    <uses-sdk android:minSdkVersion=
    "16" android:targetSdkVersion="28"/> ' Don't use version 28. It couses error in HttpJob.Donwload function
    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
    <supports-screens android:largeScreens=
    SetApplicationAttribute(android:networkSecurityConfig, @xml/network_security_config)
    "@android:style/Theme.Holo.Light"' For black cursors
    CreateResourceFromFile(Macro, Core.NetworkClearText)
    'End of default text.
    I am using b4a 9.30.
    How can I solve it?
  2. DonManfred

    DonManfred Expert Licensed User

    What does the code do? What are you trying to archieve? Where does the network_security_config xml come from?

    Bullshit. I am using target 28 and i am using httpjob without problem.

  3. Ariston

    Ariston Member Licensed User

    Although a made a mistake when a quoted the line I am trying to add, the content in the manifest editor, as shown above, really contais "CreateResourceFromFile(Macro, Core.NetworkClearText)". Is is when I add this line that the compilation error occurs.

    The purpuse is to read the whole content of a web page. I manage to read it when I set android:targetSdkVersion="27". The error shows only when I set it to 28.

    Any tip?
  4. Erel

    Erel Administrator Staff Member Licensed User

    Make sure to use android.jar from android-28 folder (Tools - Configure Paths).
  5. Ariston

    Ariston Member Licensed User

    Thank you.
  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