title: Android : Firebase remote config failed to fetch parameters
body: <p>I am trying to run Remote config in my app but everytime I got the same error and I don't know how to solve it...</p>
  
  <p>I followed this tutorial : <a href="https://firebase.google.com/docs/remote-config/use-config-android" rel="nofollow noreferrer">Use Firebase Remote Config on Android</a></p>
  
  <p>So I first, I added the dependency :</p>
  
  <pre><code>compile 'com.google.firebase:firebase-config:11.4.2'
  </code></pre>
  
  <p>In the activity's class, I added these lines :</p>
  
  <pre><code>private FirebaseRemoteConfig remoteConfig = FirebaseRemoteConfig.getInstance();
  ....
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      ....
      Task&lt;Void&gt; fetch = remoteConfig.fetch(0);
      fetch.addOnSuccessListener(new OnSuccessListener&lt;Void&gt;() {
          @Override
          public void onSuccess(Void aVoid) {
              remoteConfig.activateFetched();
  
              remoteConfig.getLong("version_code");
          }
      });
      ....
  }
  </code></pre>
  
  <p>(I added "version_code" parameter to Firebase console / Remote config and I published modifications)</p>
  
  <p>When I run the app, I get always this error :</p>
  
  <p><a href="https://i.stack.imgur.com/QiFs8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QiFs8.png" alt="enter image description here"></a></p>
  
  <p>Any idea please ? 
  Thanks</p>