title: AppsFlyer returns status code 400
body: <p>I implemented Appsflyer for my sample project, but when I run it, the server returns an error code 400.</p>
  
  <pre><code>I/AppsFlyer_1.18-117182240: response code: 400
  </code></pre>
  
  <p>There is my <code>MainActivty.java</code></p>
  
  <pre><code>public class MainActivity extends AppCompatActivity {
  
  public static final String LOG_TAG = "AppsFlyerSampleApp";
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
      setSupportActionBar(toolbar);
  
      FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
      fab.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View view) {
              Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
                      .setAction("Action", null).show();
          }
      });
      // Set the Currency
      AppsFlyerLib.setCurrencyCode("USD");
  
      // The Dev key cab be set here or in the manifest.xml
      AppsFlyerLib.setAppsFlyerKey("aaaa");
      AppsFlyerLib.sendTracking(this);
  
      AppsFlyerLib.registerConversionListener(this, new AppsFlyerConversionListener() {
          public void onInstallConversionDataLoaded(Map&lt;String, String&gt; conversionData) {
              DebugLogQueue.getInstance().push("\nGot conversion data from server");
              for (String attrName : conversionData.keySet()) {
                  Log.d(LOG_TAG, "attribute: " + attrName + " = " + conversionData.get(attrName));
              }
          }
  
          public void onInstallConversionFailure(String errorMessage) {
              Log.d(LOG_TAG, "error getting conversion data: " + errorMessage);
          }
  
          public void onAppOpenAttribution(Map&lt;String, String&gt; attributionData) {
              printMap(attributionData);
          }
  
          public void onAttributionFailure(String errorMessage) {
              Log.d(LOG_TAG, "error onAttributionFailure : " + errorMessage);
  
          }
  
          private void printMap(Map&lt;String, String&gt; map) {
              for (String key : map.keySet()) {
                  Log.d(LOG_TAG, key + "=" + map.get(key));
              }
  
          }
      });
  }
  </code></pre>
  
  <p>And my manifest file.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.example.afapplication"&gt;
  
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  &lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /&gt;
  
  &lt;application
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:supportsRtl="true"
      android:theme="@style/AppTheme"&gt;
      &lt;activity
          android:name=".MainActivity"
          android:label="@string/app_name"
          android:theme="@style/AppTheme.NoActionBar"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.VIEW" /&gt;
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;category android:name="android.intent.category.BROWSABLE" /&gt;
              &lt;data android:scheme="appsflyer" /&gt;
              &lt;!--&lt;data android:scheme="http"--&gt;
              &lt;!--android:host="sometest.com"  /&gt;--&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  
      &lt;receiver
          android:name="com.appsflyer.MultipleInstallBroadcastReceiver"
          android:exported="true"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.android.vending.INSTALL_REFERRER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
      &lt;receiver android:name="com.appsflyer.AppsFlyerLib"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.PACKAGE_REMOVED" /&gt;
              &lt;data android:scheme="package" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p>I don't know why the server outputs an error code 400?<br>
  Has anyone else got a similar case?</p>