Youtube Android Api shows Error - java

I'm developing an android app with Youtube android api..It was worked sucessfully upto last week.But now it shows an error,"
an error occurred while initializing the youtube player(network error)
Then i have tried the sample application with Youtube android api by developer forum.It also shows the same error..Please give me a solution

I can not reproduce the error. I am using the sample application with Youtube Android Api on my Nexus 7, and the last version of the YouTube app.
Maybe it is related to the problem mentioned here:
YouTube intent, error 400
You can try the workaround mentioned "log out of the youtube app and then log in again."

Try this solution on a Google product forums which helped to solve my problem - which was similar to the problem you're experiencing :)
SOLUTION: Give ONLY the YouTube ID and not the entire YouTube URL to the loadVideo() function.

Try this for 400 error..
Check your id .I think there is space in id or youtube url either start or end .I have similar problem and solved by this .You should also try .It may be help for if you dave setup all properly .

I encountered the same issue.
I recognized that the youtube app was having an update available and could not be used therefore. After installing the update everything worked fine again.
It looks like the app is somehow blocking the API when an update needs to be installed.

Related

Google Sign-In not working on published app

THIS didn't solve my problem
THIS didn't solve my problem
THIS didn't make any sense to me but doesn't seem to fix my problem anyway.
So, I've release my app on the PlayStore and the google sign in doesn't work.
I've tried to run my app with the debug and release sha1, and that got me an ApiException: 12500:
After like 2 hours of research I figured I had to use the Google Play Signin SHA-1. I did, now I get an ApiException: 10:, at least that's some progress.
But there I am stuck.
As my knowledge goes, the ApiException 10 is either a SHA or client Id problem.
It can't be a SHA problem since I now use Play's SHA (In the firebase console I have the release and play sha-1 and updated services.json, adding the debug sha just brings me back to apiexception 12500).
So I thought and still think the problem is my client Id BUT
Using the default_web_client_id doesn't work. Both client ID's for both SHA's extracted from google-services don't work. The client Id I created in Google Developers Console won't work.
So I'm begging you to help me understand what I'm missing.
Thanks.
What I tried first :
I want through this error ApiException: 12500 for a long time. I tried everthing :
remove my debugkeystore, recreate one
add support email on firebase console
change versions of plugin
update google on my device
But when I was browsing stackoverflow, I found a solution :
Maybe the solution :
I went to this page (https://console.developers.google.com/apis/credentials)
Do not forget to select your project on the list (top left). Then go on "Oauth consent screen"
I filled almost all the fields : the application logo, the email support, the application homepage link, application privacy policy link (with the project.firebaseapp.com); and I saved.
Now it's working, I can login.
Hope this will help
Source
Thanks to answer of Pranjal Gupta : Google Sign In error 12500

I'm facing an issue with payment gateway using the razorpay APIs

I have added the live API to the Manifest but it is not working somehow test API is working fine. I am getting this below error
{"error":{"code":"bad_request_error","description":"the id provided
does not exist"}}
any help would be appreciated.
I have installed the latest SDK, tried correcting some code, compared the code with razor pay's sample android app but still no luck. And the API is working fine with sample app; I don't see any issue with it.
{"error":{"code":"bad_request_error","description":"the id provided does not exist"}}
this is the error I am getting
remove order id provided by razor pay don't use order id while testing
option.put("order_id","order_9A") remove this line

Admod - Rendering Problems - Classes not instantiated

I'm trying to put Admob for android app in studio and then publish it on google play.
I have read that soon, google requires a very specific way of displaying banner.
I wonder if this form is correct and incidentally try to fix the bug that gives me.
The mobile works perfect, but not that get the error on android studio.
I put a picture to make it easier to find the error.
Hope you can help me, Thanks.
enter link description here
The error you are getting is from an old version of Admob (6.4.1), and is only an error when trying to render the AdView within your editor, it is not a runtime error.
Try using the new Admob SDK (the one from Google Play Services). It is much more likely to have this (editor only) bug fixed.

Facebook SDK crashes google-play-services-lib if imported as existing Android source code

I have an extremely strange problem to which finding solution seems to be very tricky. Here's the story:
The application I'm working on uses both Facebook SDK and Google Maps v2. Team mate was working on Google Maps and I was working on Facebook part. When we combine his and mine code it appears that just having FacebookSDK as an imported project in the workspace (not even referenced in Properties|Android|Library section of our app) , straight away makes the app not see the Google Maps library. The work around is to add Google Maps into Java build path, however the application still crashes when we try to access the activity based on Google Maps. Not having Facebook SDK in the workspace makes the Google Maps work. When the app is ran with Google Maps added to the Java build Path, when trying to access the Google Maps activity LogCat shows NoClassDefFoundError exception.
Hope I explained the problem well. If not then let me know what more is required to get closer to fixing this strange problem. Thanks :)
SOLUTION: It seems that adding Java Build Path reference to android_sdk\extras\google\google_play_services\libproject\google-play-services_lib\libs\google_play_services.jar file fixed the issue. Crysis averted. ;)

Android: Dropbox API Error

I am getting following Authentication error while trying to login in Dropbox api. Heres the message:
Authentication error: Unable to respond to any of these challenges: {}
I am using Google API Level8 of Android platform 2.2.
Any help will be highly appreciated
Thanks.
Have you tried unistalling and re-installing your version of Android?
ive been looking through various peoples posts and this seems to be the remedy for quite a few Error message Problems. If this does not work try again on a different system with the same software versions etc. and see if the problem still arises. If so contact a direct email address for Android related problems? Im sure there are a few email adresses but choosing one is down to you :)
hope this helps :)

Categories

Resources