Add ClearText Traffic Support

ClearText Traffic Support

Add the following code snippets to your manifest file for cleartext traffic support. These are required as part of Android API level 9.0 compatibility. These are mandatory requirements for GreedyGame.

  • The steps to add this are

    • Create a network_security_config.xml file under res/xml in the project
    • Paste the following content into it.

      <domain-config cleartextTrafficPermitted="true">
        <domain includeSubdomains="true"></domain>

    • In your manifest file add this as networkSecurityConfig

    • Beginning with Android 9, HTTP library is removed from the bootclasspath and is not available to apps by default. To enable the usage add the following code snippet in manifest.
    <uses-library android:name="org.apache.http.legacy" android:required="false"/>


  • Ensure that you have added the network_security_config file