What steps will reproduce the problem?
1. Visit: https://developers.google.com/glass/develop/gdk/authentication
2. Go to section titled "Java Example"
3. The GoogleCredential builder calls
setServiceAccountScopes(MIRROR_ACCOUNT_SCOPES)
4. At compile time an exception is encountered because setServiceAccountScopes
must be an Collection<String> See:
http://javadoc.google-api-java-client.googlecode.com/hg/1.18.0-rc/index.html
This can be corrected by changing:
private static final String MIRROR_ACCOUNT_SCOPES =
"https://www.googleapis.com/auth/glass.thirdpartyauth";
To
private static final List<String> MIRROR_ACCOUNT_SCOPES = Arrays.asList(
"https://www.googleapis.com/auth/glass.thirdpartyauth");
What is the expected output? What do you see instead?
The code should compile
What version of the product are you using? On what operating system?
v18-rc of the google api client and v1-rev47-1.18.0 of the Mirror client
library.
Original issue reported on code.google.com by j...@socialradar.com on 8 May 2014 at 3:58
Original issue reported on code.google.com by
j...@socialradar.com
on 8 May 2014 at 3:58