GoogleApiClient is not connected yet exception

前端 未结 2 825
一个人的身影
一个人的身影 2021-01-13 08:32

The application i\'m working on, works properly sometimes but some other times it gives me this error

FATAL EXCEPTION: java.lang.RuntimeException: Una

2条回答
  •  渐次进展
    2021-01-13 08:56

    This is coming late but for whoever it might be useful for:

    1. Move loc.buildGoogleApiClient(); to the onCreate method.
    2. Move loc.createLocationRequest(); to the onConnected method.

提交回复
热议问题