YouTube Data API: The following error occurred: null
YouTube Data API: The following error occurred: null
I tried to run next example https://developers.google.com/youtube/v3/quickstart/android (Android Youtube Data API)
but I get the error when I press Call Yotube Data Api button:
The following error occurred: null
at
@Override
protected void onCancelled() {
mProgress.hide();
if (mLastError != null) {
if (mLastError instanceof GooglePlayServicesAvailabilityIOException) {
showGooglePlayServicesAvailabilityErrorDialog(
((GooglePlayServicesAvailabilityIOException) mLastError)
.getConnectionStatusCode());
} else if (mLastError instanceof UserRecoverableAuthIOException) {
startActivityForResult(
((UserRecoverableAuthIOException) mLastError).getIntent(),
YoutubePlaylistParse.REQUEST_AUTHORIZATION);
} else {
mOutputText.setText("The following error occurred:n"
+ mLastError.getMessage());
}
} else {
mOutputText.setText("Request cancelled.");
}
}
so I have no idea what could be wrong
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Comments
Post a Comment