-
Notifications
You must be signed in to change notification settings - Fork 464
Closed
Labels
needs more infoThis issue needs more information from the customer to proceed.This issue needs more information from the customer to proceed.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.
Description
Environment details
- OS type and version: Android api 19
- Java version: 8
- google-http-client version(s): implementation 'com.google.http-client:google-http-client-gson:1.34.0'
Code example
private static List exeQ(String q) throws IOException {
String nextPageToken = "";
List res = new ArrayList<>();
do {
final FileList list = googleDriveService.files().list().setSpaces("drive").setQ(q).setPageToken(nextPageToken).setFields("nextPageToken, files(*)").setPageSize(100).setOrderBy("modifiedTime").execute();
nextPageToken = list.getNextPageToken();
res.addAll(list.getFiles());
} while (nextPageToken != null);
return res;
}
Stack trace
Caused by: java.lang.NoClassDefFoundError: java.nio.charset.StandardCharsets
at com.google.api.client.util.escape.CharEscapers.decodeUriPath(CharEscapers.java:110)
at com.google.api.client.http.GenericUrl.toPathParts(GenericUrl.java:594)
at com.google.api.client.http.GenericUrl.<init>(GenericUrl.java:200)
at com.google.api.client.http.GenericUrl.<init>(GenericUrl.java:177)
at com.google.api.client.http.GenericUrl.<init>(GenericUrl.java:126)
at com.google.api.client.http.GenericUrl.<init>(GenericUrl.java:109)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.buildHttpRequestUrl(AbstractGoogleClientRequest.java:388)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.buildHttpRequest(AbstractGoogleClientRequest.java:423)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:542)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:475)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:592)
(GFile.java:192)
Thanks!
Metadata
Metadata
Assignees
Labels
needs more infoThis issue needs more information from the customer to proceed.This issue needs more information from the customer to proceed.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.