title: Android-Firebase realtime database stopped working after update
body: <p>I am using firebase realtime database for past 6+ months. It worked well. But now I updated gradle dependencies to latest one and it stopped working. I didn't changed anything in code but it is neither reading nor writing.<br>
  My project level gradle google services version.</p>
  
  <pre><code>classpath 'com.google.gms:google-services:4.0.1'
  </code></pre>
  
  <p>My app level firebase dependencies</p>
  
  <pre><code>implementation 'com.google.firebase:firebase-crash:16.0.1'
  implementation 'com.google.firebase:firebase-core:16.0.1'
  implementation 'com.google.firebase:firebase-database:16.0.1'
  implementation 'com.google.firebase:firebase-storage:16.0.1'
  implementation 'com.google.firebase:firebase-auth:16.0.2'
  implementation 'com.google.firebase:firebase-messaging:17.0.0'
  </code></pre>
  
  <p>I didn't changed firebase database rules now. </p>
  
  <pre><code>{
   "rules": {
   ".read": true,
   ".write": true
    }
  }
  </code></pre>
  
  <p>I tried to test the simple write code but it didn't updated in the firebase webview console.</p>
  
  <pre><code>FirebaseDatabase database4 = FirebaseDatabase.getInstance();
  DatabaseReference myRef4 = database4.getReference("BLB");
  myRef4.setValue("Hello, World!");
  </code></pre>
  
  <p>Now if I add addValueEventListener to above myRef4 database object it will give "Hello World" in OnDataChanged method but no data in webview console. Is there any changes in implementation too along with new firebase SDK.<br>
  <strong>Note :</strong> I used Firebase client in android studio to integrate them.
  <br><br>Firebase logger in debug mode in Xiaomi mi note 4<br></p>
  
  <pre><code>06-24 11:41:18.311 9774-9943/com.package.subpackage D/WebSocket: ws_14 - WebSocket error.
  bgg: error while creating secure socket to wss://d***-****.firebaseio.com/.ws?ns=***-1*****&amp;v=5
      at bgd.d(:com.google.android.gms.dynamite_dynamitemodulesc@12685025@12.6.85 (040408-197041431):104)
      at bge.run(:com.google.android.gms.dynamite_dynamitemodulesc@12685025@12.6.85 (040408-197041431):4)
      at java.lang.Thread.run(Thread.java:760)
   Caused by: java.net.ConnectException: Connection timed out
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:334)
      at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:196)
      at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:356)
      at java.net.Socket.connect(Socket.java:586)
      at com.android.org.conscrypt.OpenSSLSocketImpl.connect(OpenSSLSocketImpl.java:265)
      at com.android.org.conscrypt.OpenSSLSocketImpl.connect(OpenSSLSocketImpl.java:252)
      at java.net.Socket.&lt;init&gt;(Socket.java:427)
      at java.net.Socket.&lt;init&gt;(Socket.java:210)
      at javax.net.ssl.SSLSocket.&lt;init&gt;(SSLSocket.java:906)
      at com.android.org.conscrypt.OpenSSLSocketImpl.&lt;init&gt;(OpenSSLSocketImpl.java:192)
      at com.android.org.conscrypt.OpenSSLSocketFactoryImpl.createSocket(OpenSSLSocketFactoryImpl.java:68)
      at bgd.d(:com.google.android.gms.dynamite_dynamitemodulesc@12685025@12.6.85 (040408-197041431):94)
      at bge.run(:com.google.android.gms.dynamite_dynamitemodulesc@12685025@12.6.85 (040408-197041431):4) 
      at java.lang.Thread.run(Thread.java:760) 
  </code></pre>
  
  <p><br><strong>The same code working on other brand's devices.</strong></p>