Google maps suddenly not working

后端 未结 1 1380
情歌与酒
情歌与酒 2020-12-05 21:45

All of a sudden maps stopped working in my app and just shows a blank screen with the google logo in the bottom left corner.

The error I get is:

I/G         


        
相关标签:
1条回答
  • 2020-12-05 22:17

    I had exactly the same problem and the solution was not obvious at all. Check if you are not changing DefaultSSLSocketFactory with:

    HttpsURLConnection.setDefaultSSLSocketFactory(sslContext.getSocketFactory());
    

    Removing this line and setting socket factory just for the required connection made my maps work.

    0 讨论(0)
提交回复
热议问题