0

i want to try the Youtube Api Demo, i downloaded and added my Api_key (eclipse) already and tried to run Demo, when i run the sample code i have a screen with the list of sample pages but when i want to test any of this listed samples, i receive "unfortunately the Youtube Api has stopped"

What should i do, any help?, thanks

2 Answers2

0

Check the following block in your AndroidManifest.xml

<uses-sdk
    android:minSdkVersion="16"
    android:targetSdkVersion="18" />

and the following in project.properties

target=android-17
Vishnu
  • 159
  • 1
  • 3
  • 9
  • i did it but nothing changed. – user2981455 Nov 13 '13 at 03:12
  • There is no error in Logcat. It starts normal and i can see the start page of Application on my screen; where it says; "please select a demo; VideoWall, SimplePlayerView etc." When i choose one of them, the applicaion stops! – user2981455 Nov 14 '13 at 17:15
  • Once the app stops forcefully or due to some error, I guess there will be an entry in LogCat. – Vishnu Nov 16 '13 at 07:39
-1

I don't know if it's still relevant.. But I had the same problem and I have found the solution. it apears that once I checked in logcat I noticed that I got an Error saying "Developer_Key cannot be defined as null or empty" so, in the DeveloperKey.java I changed it from null to a key. how to get a key?

you can follow this video : https://www.youtube.com/watch?v=Im69kzhpR3I

JozeRi
  • 3,219
  • 6
  • 27
  • 45
  • Well, just google "youtube developer key" if the video dies. there are lots of guides. hope my answer will be helpfull to someone, took me a while to understand that code error. – JozeRi Aug 19 '14 at 13:49
  • Please read [answer] and [this meta question](http://meta.stackexchange.com/questions/8231/are-answers-that-just-contain-links-elsewhere-really-good-answers) to understand why your answer needs to be improved. – Jonathan Drapeau Aug 19 '14 at 14:06