问题
I recently saw that ARC is now supporting a few Google Play Services including Google Maps.
When using the ARC Welder, I specify the following metadata:
{"usePlayServices":["maps"]}
According to the documentation here, I must also include the crx_key value in the metadata. When doing so, the additional metadata appears as such:
{
"usePlayServices":["maps"],
"crx_key":"<KEY FROM WEBSTORE>"
}
Attempting to Launch the App causes an "Error Loading Extension" message:
Any ideas as to why I'm receiving this error? I made sure the key has no white spaces/line returns as mentioned in the documentation.
回答1:
When copying your public key from the web store, it's important to select exactly the right thing. The highlighted portion below is the public key, make sure not to select the -----BEGIN/END PUBLIC KEY-----
annotations, and to remove any line breaks / whitespace (as you said you already had).
回答2:
This Additional Metadata worked for my apk that uses Google Maps API for Android and Google Location API:
{
"usePlayServices": ["location", "maps"]
}
来源:https://stackoverflow.com/questions/29433981/google-maps-in-chrome-arc