onLoadingStateChanged() function and onError() are giving an error by saying that “overrides nothing”.