First, the error reports "change your network and retry", then you should check whether your access to internet is normal. If your internet is not decent, please improve your internet connection. Besides, check whether you have installed Firewall on your phone, and turn it off if it's on.
Second, the error reports "invalid key", which means the API Key is invalid or it has expired. Doublecheck and make sure that the API key you imput or scanned is authentic. Moreover, recreate a new one If it has expired.